The first diff occur at index 4 : (2,1) vs (1,2) while the 2 tuples represent the same edge : the order in which vertex are listed has no importance in this context.
What seems to work is :
assert_equal( frozenset(frozenset(x) for x in G.edges()) , frozenset(frozenset(x) for x in K.edges()) )
At my end following test is failing :
https://github.com/hagberg/planarity/blob/f331ae09d033ada5d4ebddf335acce69497a39f4/planarity/tests/test_planarity_networkx.py#L60
The test infrastructure report that the 2 lists of edge are different :
The first diff occur at index 4 :
(2,1)
vs(1,2)
while the 2 tuples represent the same edge : the order in which vertex are listed has no importance in this context.What seems to work is :
assert_equal( frozenset(frozenset(x) for x in G.edges()) , frozenset(frozenset(x) for x in K.edges()) )