Load An Edge-list Into Graph-tool
I want to load an edge-list into graph-tool. The vertex-indices in my list are not sequential, so I would like them to be automatically added as vertex_properties. As far as I unde
The answer is right there in the documentation:
"...a vertex property map with the vertex values is returned."
Note it says "returned", not "added to the internal property map list".
Just do:
name = G.add_edge_list(edge_list, hashed=True, eprops=eprops)
and name
is the property map you want.
Post a Comment for "Load An Edge-list Into Graph-tool"