Merge pull request #1188 from vighneshbirodkar/rag_merge

Added in_place option to merge_nodes
This commit is contained in:
Juan Nunez-Iglesias
2014-10-23 20:48:23 +11:00
3 changed files with 78 additions and 11 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()