I'm writing an application with heavy graph operations. It's written
in python, so i've tried networkx, igraph and lately i've tried to use
boost graph library bindings to python (BGL-PY).
Thanks god i ran into graph-tool which looks very complete and also is
doing a transition into something very handy for me (python accessible
I'm having a look at the API i found here:
and i see i add vertices with g = Graph() g.add_vertices() and
calculate the betweeness centrality with
As i was looking for an implementation of a minimum spanning tree i
realized i couldn't find it in the reference i pointed a couple of
So i had a look at the graph_tool.py that uses the library and
realized that the interface is different there.
Graph = GraphInterface()
Graph.GetBetweennessCentrality() or Graph.GetMinimumSpanningTree()
etc, and i cannot find any add_vertex() in this API.
I'm a bit confused, so i'm trying to understand what i should use to
have full power over the graph-tool API.