Thank you very much Tiago. I'm still having some troubles with the graphviz library in graph-tool. I installed the packages (python-pygraphviz, libgv-py etc) and made the link you suggested in some recent emails about this troubles, but python is still complaining about gvg. Funny thing is that networkx which also uses graphviz to draw graphs doesn't have the same problem. Any ideas? On Fri, Nov 6, 2009 at 5:54 PM, Tiago de Paula Peixoto <tiago@forked.de> wrote:
Claudio Martella wrote:
yes, it's a small world of over 1.000.000 edges, at the moment, but probably will be bigger in the future. I don't understand how i could switch it to O(E) from the matrix. Can i get the non-zero elements of the matrix?
The adjacency list returned is a sparse matrix object:
http://docs.scipy.org/doc/scipy/reference/sparse.html#module-scipy.sparse
You can get the non-zero elements with the nonzero() method of the matrix.
Cheers, Tiago
_______________________________________________ graph-tool mailing list graph-tool@forked.de http://lists.forked.de/mailman/listinfo/graph-tool
-- Claudio Martella claudio.martella@gmail.com