cmpE(a,b) < 0 if a < b cmpE(a,b) > 0 if a > b cmpE(a,b) == 0 if a == b int cmpE(Edge,Edge);
which compares first on v, then on w
Suggest two possible ways to deal with this issue.