Trouble with an algorithm to find edges

Printable View