From: Steven B. <sb...@cs...> - 2003-05-13 08:27:19
|
On Tue, 2003-05-13 at 16:51, Guido Di Maio wrote: > Dear all, > I'm currently developing a text parser that produce a quite complex > annotation graph. > In order to visually debug such a graph it would be really usefull a > tool which is able to display the graph structure. > Does this tool exist somewhere ? For our published documents we've often used graphviz http://www.research.att.com/sw/tools/graphviz/download.html Here's an example input file. It mightn't be too difficult to write an AG save function which generates this format, then use the "dot" command to create a postscript image. digraph timit { rankdir=LR; size="7,3"; node [shape=record,width=.2,height=.2,label="",fontsize=18, fontname="Helvetica"]; edge [fontsize=36, fontname="Helvetica"]; node0[label = "<f0> 0|<f1> 0"]; node1[label = "<f0> 1|<f1> 2360"]; node2[label = "<f0> 2|<f1> 3270"]; node3[label = "<f0> 3|<f1> 5200"]; node4[label = "<f0> 4|<f1> 6160"]; node5[label = "<f0> 5|<f1> 8720"]; node6[label = "<f0> 6|<f1> 9680"]; node7[label = "<f0> 7|<f1> 10173"]; node8[label = "<f0> 8|<f1> 11077"]; "node0":f0 -> "node1":f0 [weight=2,label="P/h#"]; "node1":f0 -> "node2":f0 [weight=2,label="P/sh"]; "node2":f0 -> "node3":f0 [weight=2,label="P/iy"]; "node3":f0 -> "node4":f0 [weight=2,label="P/hv"]; "node4":f0 -> "node5":f0 [weight=2,label="P/ae"]; "node5":f0 -> "node6":f0 [weight=2,label="P/dcl"]; "node6":f0 -> "node7":f0 [weight=2,label="P/y"]; "node7":f0 -> "node8":f0 [weight=2,label="P/axr"]; "node1":f1 -> "node3":f1 [label="W/she"]; "node3":f1 -> "node6":f1 [label="W/had"]; "node6":f1 -> "node8":f1 [label="W/your"]; } |