code for finding edges, not sure if necessary?

plz check hekkas?