How to visualizate dot files generated with QuichGraph

24 views
Skip to first unread message

Alex

unread,
Jan 1, 2010, 3:03:44 PM1/1/10
to canviz
Hi! I am using QuickGraph to generate dot files.

I've got something like this:

digraph G {
0 ;
1 ;
2 ;
3 ;
4 ;
5 ;
0 -> 24 [];
0 -> 1 [];
1 -> 0 [];
1 -> 17 [];
1 -> 41 [];
}

When I use canviz I've got nothing in the browser. Is there any way to
get it worked?

Ryan Schmidt

unread,
Jan 4, 2010, 6:39:47 PM1/4/10
to canviz
You'll need to turn that dot file into an xdot file before canviz can
render it. For example, if the aforementioned graph is in the file
graph.gv, turn it into an xdot file xdot.gv by running this command:

dot -Txdot -oxdot.gv graph.gv

Then ask canviz to render xdot.gv.

Reply all
Reply to author
Forward
0 new messages