20 Mar
2014
20 Mar
'14
12:10 p.m.
Il giorno gio, 20/03/2014 alle 12.52 +0100, Tiago de Paula Peixoto ha scritto:
[...] I have now just added a Graph.add_edge_list() to the git version, which takes a list of edges to be added, which can be a numpy array. If you have a full adjacency matrix instead of an edge list, you can do simply:
g.add_edge_list(transpose(nonzero(a)))
This should be much faster than the Python loop above.
This is really great, I will try the git version as soon as possible. Thank you very much. Pietro