punkish has asked for the wisdom of the Perl Monks concerning the following question:

I am trying to generate graphs of my wiki -- incoming pages (I keep track of trackbacks), and outgoing pages from the current page. Using GraphViz, I can do this quite easily. However, I have two problems with running GraphViz module (and/or the GraphViz program) via the web on Win32 with ActiveState. Any suggestions? Or suggested replacement for GraphViz for this? There are a number of Java network viz libs out there, but I want to stay away from Java as much as possible.
--

when small people start casting long shadows, it is time to go to bed

Replies are listed 'Best First'.
Re: Problems with GraphViz module
by jeteve (Pilgrim) on Sep 18, 2006 at 11:13 UTC
    Hi.

    GraphViz needs a HOME environment variable to work properly.

    Do a SetEnv HOME /tmp/ within you CGI environment and it should work fine after that.

    You can produce SVG and attach links to your node with GraphViz. GraphViz will output clickable SVG, so no need for an image map !!

    See this node

    -- Nice photos of naked perl sources here !

      Ooops, I haven't see that you had already found this node.

      Sorry..

      -- Nice photos of naked perl sources here !

Re: Problems with GraphViz module
by Util (Priest) on Sep 18, 2006 at 06:12 UTC

    Are you *sure* that SVG can't do image maps? This works for me, producing clickable links:

    echo 'graph G { node [URL="http://search.cpan.org" ] CPAN; node [URL="http://www.perlmonks.org"] PerlMonks; CPAN -- PerlMonks; } ' | dot -Tsvg > PM_573377.svg

Re: Problems with GraphViz module
by Anonymous Monk on Sep 17, 2006 at 11:17 UTC