Commit 27399e6a authored by dirk.wintergruen's avatar dirk.wintergruen
Browse files

faster adding edges in union

parent 05adafd0
...@@ -199,7 +199,8 @@ def union(g_1, g_2, v_attr_name,e_attr_name = None, typ_field = None): ...@@ -199,7 +199,8 @@ def union(g_1, g_2, v_attr_name,e_attr_name = None, typ_field = None):
for k,vs in n_vs.items(): for k,vs in n_vs.items():
edges_list_new.append((e[0],e[1])) edges_list_new.append((e[0],e[1]))
attributes[d].append(y) for x,y in vs:
attributes[x].append(y)
# d = {x:y for x,y in vs} # d = {x:y for x,y in vs}
# graph_merged.add_edge(e[0],e[1],**d) # graph_merged.add_edge(e[0],e[1],**d)
......
Supports Markdown
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