Hello Tiago,

I think I am missing something very simple:

import graph_tool.all as gt
g = gt.Graph(directed = False)
g.add_edge_list([(0, 1), (1, 2)])

print(g)
g.remove_vertex(1)
print(g)

The two print commands give this:
<Graph object, undirected, with 3 vertices and 2 edges at 0x7fc489423780>
<Graph object, undirected, with 2 vertices and 2 edges at 0x7fc489423780>

Shouldn't it show 0 edges after removal of the middle vertex? When I draw these graphs, I see no edges after removal. Also, would this affect other calculations like shortest paths etc?

Thank you
Snehal


--
Snehal M. Shekatkar
Pune
India