added non in-place merge

This commit is contained in:
Vighnesh Birodkar committed 2014-10-04 20:19:58 +05:30
1 parent 669b0bf311
commit febef86bbb
3 files changed
+30 -10

No files matched your search

+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()