Skip to content
Snippets Groups Projects
Commit c9f8e172 authored by Lionel GUEZ's avatar Lionel GUEZ
Browse files

Print number of weakly connected components

parent c8dde855
No related branches found
No related tags found
No related merge requests found
......@@ -69,6 +69,8 @@ if __name__ == "__main__":
"with sufficient area), plus the number of interpolated eddies, "
"minus the number of isolated nodes.)")
print("Number of edges:", G.number_of_edges())
print("Number of weakly connected components:",
nx.number_weakly_connected_components(G))
n1 = 0
n2 = 0
print("\nMerging:")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment