Commit 17ae6a47 authored by Fize Jacques's avatar Fize Jacques

debug GED (networkx edges() method problem)

parent 7cff6b01
......@@ -21,8 +21,13 @@ cdef class GraphEditDistance(AbstractGraphEditDistance):
R=nx.create_empty_copy(G)
try:
R.add_edges_from(G.edges(node1,node2))
except:
pass
except Exception as e:
# To counter bug with a None for attribute... weird ??
arr_=G.edges(node1,node2)
new_list=[]
for item in arr_:
new_list.append((item[0],item[1]))
R.add_edges_from(new_list)
return R
def relabel_cost(self, node1, node2, G, H):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment