|Keep It Simple, Stupid|
drawing (visualizing) directed graphsby punkish (Priest)
|on Jul 15, 2006 at 01:24 UTC||Need Help??|
punkish has asked for the
wisdom of the Perl Monks concerning the following question:
I have a sample data structure like so --
I would like to create a directed graph (I believe I am using the term correctly) and visualize it such that...
will create a "picture" with 'a' as the origin and arrows to b, c, and d... clicking on, say, 'b' will call makeGraph('b'), and so on.
I believe I can accomplish this with Graphviz family of modules, but there are two problems with Graphviz... one, the output is pretty, how shall I say this politely, not nice. Maybe that can be adjusted with further exploration. But, more than that, it is really a static picture. Ideally I would like one of those springy network visualizations that one sees on Amazon and C|Net, etc. (www.touchgraph.com has a nice WikiBrowser that does something like this, except, in a standalone app... eventually I want this to work in a browser). I realize this would have to be done in something like Java (www.processing.org comes to mind), but perhaps I can do the coding in Perl, and then send off the data to the Java applet.
In any case, I am looking for some starting directions here.
when small people start casting long shadows, it is time to go to bed