import booost.graph as bgl a=bgl.Graph.small_world_graph(5,5,.9, allow_self_loops=True) bgl.page_rank(a,a.add_vertex_property('float'))