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

Print graph properties after removing vertices

parent 68fbb071
No related branches found
No related tags found
No related merge requests found
......@@ -79,17 +79,17 @@ for v in g.vertices():
t1 = time.perf_counter()
print(f'Done collapsing in {t1 - t0:.0f} s')
t0 = t1
print("New graph:")
print("Number of vertices:", g.num_vertices())
print("Number of edges:", g.num_edges())
print("Internal properties:")
g.list_properties()
print('Empty nodes:', len(verts_to_del))
print('Deleting empty nodes...')
g.remove_vertex(verts_to_del, fast=True)
t1 = time.perf_counter()
print(f"Done deleting in {t1 - t0:.0f} s")
t0 = t1
print("Graph of segments:")
print("Number of vertices:", g.num_vertices())
print("Number of edges:", g.num_edges())
print("Internal properties:")
g.list_properties()
print('Saving graph...')
g.save(sys.argv[2])
t1 = time.perf_counter()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment