I wasn't familiar with 'Poison and Rat' puzzle that the post mentions as an inspiration of the title riddle.
Without looking at the answer I came up with a geometric interpretation of it (explained below as this is a spoiler to the Poison and Rat puzzle).