[python-uk] Library for (undirected) graphs in Python?

René Dudfield renesd at gmail.com
Tue Jan 25 11:01:49 CET 2011


Hi,

Speaking of pygame dots, and py3k...  there's an interactive dot viewer for
pygame around (from the pypy project), and pygame works for python 3000.
It's in the pypy/dotviewer/ directory, or on bitbucket:
https://bitbucket.org/pypy/pypy/src/f532d93c171e/dotviewer/

cya.

On Tue, Jan 25, 2011 at 9:48 AM, Daniel Pope <mauve at mauveweb.co.uk> wrote:

> On 24/01/11 22:29, Alex Willmer wrote:
>
>> The only program I know for (un)directed graphs is Graphviz and
>> associated DOT format. For which there a few hits:
>> http://pypi.python.org/pypi?:action=search&term=graphviz
>>
>
> You don't need a library to use graphviz. graphviz has a command-line
> interface that renders a DOT file. A DOT file is just a list of nodes and
> edges and how they should be drawn.
>
> At its simplest an undirected graph in DOT format is written like:
>
> graph {
>    A -- B;
>    B -- C;
>    B -- D;
> }
>
> This is easy to generate with any version of Python.
>
> Dan
>
> _______________________________________________
> python-uk mailing list
> python-uk at python.org
> http://mail.python.org/mailman/listinfo/python-uk
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-uk/attachments/20110125/f391048b/attachment.html>


More information about the python-uk mailing list