Your result is the expected result, and the one I got when running through your steps.
To fix it, you should just be able to increase the tolerance on the edge detect node.
It looks for contrast, and if you notice, in your distance node you can see a subtle gradient in each shape. Your edge detect is just set sensitively enough that it detects some of that as edges.
Increasing the tolerance basically says "Only look at the pixels that contrast more".
Replies
To fix it, you should just be able to increase the tolerance on the edge detect node.
It looks for contrast, and if you notice, in your distance node you can see a subtle gradient in each shape. Your edge detect is just set sensitively enough that it detects some of that as edges.
Increasing the tolerance basically says "Only look at the pixels that contrast more".