Full node/edge lists would be useful
Hi, I think graph-tool is really a great library; super fast back-end and clear front-end.
The only feature that I miss is direct access to edges and nodes as np.ndarray
. An exemplary use case is that I have an initial set of points + connectivity, I want to do run some graph algorithms on them using graph-tool and afterwards process the resulting graph with numpy-based functions (e.g. make a 3d drawing using mayavi ). The only solution I've found for obtaining the edgelist is
edges = np.array([(int(e.source()), int(e.target())) for e in g.edges()])
doing this loop/conversion in pure python is unnecessarily inefficient.
Cheers Marius