On 22.03.2016 09:19, Ilkka Rajala wrote: > You can use edge_endpoint_property: > https://graph-tool.skewed.de/static/doc/graph_tool.html#graph_tool.edge_endpoint_property > > The example in that page is getting a numpy array of source vertices > for all edges. It's very fast.
Another option is to use the adjacency() function that will return a
sparse matrix. You can then get the edges with the nonzero() method:
a = ajacency(g)
edges = a.nonzero()
Best,
Tiago
--
Tiago de Paula Peixoto <[email protected]>
signature.asc
Description: OpenPGP digital signature
_______________________________________________ graph-tool mailing list [email protected] http://lists.skewed.de/mailman/listinfo/graph-tool
