pretty printing graphs

John Hunter jdhunter at ace.bsd.uchicago.edu
Tue Jul 29 09:53:27 EDT 2003


>>>>> "Bengt" == Bengt Richter <bokr at oz.net> writes:

    Bengt> How about (I added a name in the first node line for
    Bengt> debugging, and boxing): (code follows output). Not tested
    Bengt> much ;-)

Thanks Bengt - that looks great.  You really should be on the payroll.

I won't have time until tonight to wrap my head around your code, but
I think I'll add a to_dot method to the Node class which generates dot
output, so I can use your ascii output for day-to-day stuff, and then
go to dot for publication quality.

Thanks all for the suggestions,
JDH







More information about the Python-list mailing list