added non in-place merge

This commit is contained in:
Vighnesh Birodkar
2014-10-04 20:19:58 +05:30
parent 669b0bf311
commit febef86bbb
3 changed files with 30 additions and 10 deletions
+2 -2
View File
@@ -75,7 +75,7 @@ display(g, "Original Graph")
g.merge_nodes(1, 3)
display(g, "Merged with default (min)")
gc.merge_nodes(1, 3, weight_func=max_edge)
display(gc, "Merged with max")
gc.merge_nodes(1, 3, weight_func=max_edge, in_place=False)
display(gc, "Merged with max without in_place")
plt.show()