Tree and Graph structures in Python.

Discussion in 'Python' started by Ant, Mar 14, 2006.

  1. Ant

    Ant Guest

    Hi all,

    Are there any tree or graph modules available for python?

    Ant, Mar 14, 2006
    1. Advertisements

  2. Google for "boost graph python"
    Lonnie Princehouse, Mar 14, 2006
    1. Advertisements

  3. Istvan Albert, Mar 14, 2006

    (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.

    bearophileHUGS, Mar 14, 2006
  5. Ant

    Tamas Nepusz Guest

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

    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 Nepusz, Mar 15, 2006
  6. Ant

    Ant Guest

    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, Mar 15, 2006
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.