Drawing (directed) graphs

Andy Robinson andy at robanal.demon.co.uk
Thu Nov 4 16:23:06 EST 1999


"Adrian Eyre" <a.eyre at optichrome.com> wrote:

>> Does anyone know of Python code for drawing graphs of the
>> graph-theoretic type? Ideally, I'd like to be able to interactively
>> add nodes and edges etc and add data to structures associated with the
>> nodes and edges.
>
>Depends if you're looking for a proper graphics display, or an ASCII
>representation. A full graphics version would not be platform
>independent, and would require a graphics library.

Good thing there is a platform independent Python graphics library!
PIDDLE (Plug In Drawing, Does little Else) at
www.strout.net/python/piddle
There is a discussion list at www.egroups.com/pythonpiddle/

PIDDLE is pretty stable, and we hope we'll build up a bunch of such
applets on top of it over time.

BTW, I'm in charge of the PDF back end for PIDDLE, and would certainly
have uses for such a routine.  One demo I've always wanted is to look
at a Python program and draw a module dependency graph (as well as all
the module docstrings)....

Regards,

Andy




More information about the Python-list mailing list