Scripting graphs

Rob Renaud rpgnmets at aol.com
Sat Feb 8 16:06:26 EST 2003


Jason Morgan wrote:

> I need to script the creation of graphs and I was hoping to do it with
> python. What are the best tools to do such a task?
> 
> Jason
> 

I've used graphviz to accomplish such a task.  The documentation is good, 
and the generated graphs are very nice.

For example, I generated the following with dot (albeit not 
programmatically, wrote the graph source file by hand)

http://www.eden.rutgers.edu/~rrenaud/csdep/csdep.html

I also used it in one of my CS classes when we had to implement a routing 
algorithm.  I used it to generate graphs (programmatically) of the networks 
the routers would be running on, and it helped debugging immensely.

You can get it here.

http://www.research.att.com/sw/tools/graphviz/






More information about the Python-list mailing list