Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > Tree and Graph structures in Python.

Reply
Thread Tools

Tree and Graph structures in Python.

 
 
Ant
Guest
Posts: n/a
 
      03-14-2006
Hi all,

Are there any tree or graph modules available for python?

Cheers,

--
Ant...

 
Reply With Quote
 
 
 
 
Lonnie Princehouse
Guest
Posts: n/a
 
      03-14-2006
Google for "boost graph python"

 
Reply With Quote
 
 
 
 
Istvan Albert
Guest
Posts: n/a
 
      03-14-2006
See this:

https://networkx.lanl.gov/

 
Reply With Quote
 
bearophileHUGS@lycos.com
Guest
Posts: n/a
 
      03-14-2006
http://www.osl.iu.edu/~dgregor/bgl-python/
http://sourceforge.net/projects/pygraphlib/
http://sourceforge.net/projects/pynetwork/
https://networkx.lanl.gov/
http://starship.python.net/crew/aaro...ers/kjbuckets/
http://www.python.org/doc/essays/graphs.html
http://yapgvb.sourceforge.net/
http://dkbza.org/pydot.html
http://www.geocities.com/foetsch/mfgraph/index.htm

(Some of them are just explanations, or interfaces with a well known
graph plotting package).
With Google you can probably find 2-4 other libraries...
I think there are so many of them because some people need them, but
there isn't a standard one yet in the built-in library.

Bye,
bearophile

 
Reply With Quote
 
Tamas Nepusz
Guest
Posts: n/a
 
      03-15-2006
Istvan Albert wrote:
> See this:
>
> https://networkx.lanl.gov/

Or if you want to be able to handle large graphs efficiently, igraph
might be a good choice:

http://igraph.sourceforge.net/

It's written in pure C, but has a Python interface and according to my
measurements, it's much faster than any other Python graph package. The
Python interface really needs some documentation, though, because now
the only way to figure things out is to call help(igraph.Graph) after
importing the module. (Or read the documentation of the C interface and
hope that the function arguments are the same )

--
Tamas <>

 
Reply With Quote
 
Ant
Guest
Posts: n/a
 
      03-15-2006
Thanks guys. The networkx and igraph packages look to have the sort of
features I want. I'm surprised there's nothing in the standard module
library really.

--
Ant...

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Serialization of Graph-like C++ Structures Nordlöw C++ 2 07-09-2009 01:40 PM
How to draw a tree/graph of a web site? David Combs Perl Misc 0 09-11-2007 06:59 PM
Graph Data Structures Nathan Harmston Python 12 11-26-2006 03:49 AM
tree structures shawn Java 3 03-07-2006 02:00 PM
tree structures frank Ruby 14 02-15-2006 05:23 PM



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57