Fixed resolving code finding the incorrect edge when two edges between vertices exist.