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 On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[Boost.Graph] graph.vertices property creates new objects George Sakkis Python 1 01-29-2007 11:09 PM
structures, structures and more structures (questions about nestedstructures) Alfonso Morra C Programming 11 09-24-2005 07:42 PM
Missing Graph.h and (Graph.lib) woes - any help Dr Ann Huxtable C Programming 6 12-21-2004 11:15 AM
B tree, B+ tree and B* tree Stub C Programming 3 11-12-2003 01:51 PM
GD::Graph: "mixed" graph doesn't recognize "area" graph type Emilio Mayorga Perl Misc 6 10-08-2003 02:14 AM



Advertisments
 



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