In [8]:
# Simple test code to make sure graph-tool library is up and running...

from graph_tool.all import *
from numpy.random import *

g, pos = triangulation(random((400, 2)) * 4, type="delaunay")
tree = min_spanning_tree(g)

bv, be = betweenness(g)
be.a /= be.a.max() / 5
graph_draw(g, pos=pos, vertex_fill_color=bv, edge_pen_width=be, output_size=(950, 950), inline=True)


Out[8]:
<PropertyMap object with key type 'Vertex' and value type 'vector<double>', for Graph 0x7fd6584f43c8, at 0x7fd6584f4630>