Doesn't work, no idea why
-
Using this:
digraph hierarchy { size="5,5" node[shape=record,style=filled,fillcolor=gray95] edge[dir=back, arrowtail=empty] 2[label = "{AbstractSuffixTree|+ text\n+ root|...}"] 3[label = "{SimpleSuffixTree|...| + constructTree()\l...}"] 4[label = "{CompactSuffixTree|...| + compactNodes()\l...}"] 5[label = "{SuffixTreeNode|...|+ addSuffix(...)\l...}"] 6[label = "{SuffixTreeEdge|...|+ compactLabel(...)\l...}"] 2->3 2->4 5->5[constraint=false, arrowtail=odiamond] 4->3[constraint=false, arrowtail=odiamond] 2->5[constraint=false, arrowtail=odiamond] 5->6[arrowtail=odiamond] }
Putting the dot source inside
hierarchy.dot
and runningdot -O -Tsvg hierarchy.dot
works just fine, putting it between[graphviz]
markers gives me this:Error generating Graphviz image Graphviz cannot generate graph Warning: : syntax error in line 2 near ']'
I have no way of finding out what’s wrong.
Well okay removing the size parameter gave me another error, so I can find out problems by commenting out individual lines. Actually I’d be okay with that if errors happened just occasionally, but I’m not okay if I need to do this multiple times with no indication how many more problems of that kind mind be waiting for me.It would be nice if the plugin printed the full path name of the generated
.dot
file and the command-line invokation it used.The plugin page shows the generated sample graph, and pasting the code there to the WP page works just fine, too.
Using TFO-Graphviz 1.12, which is accessing Graphviz through graphviz path
/usr/bin/dot
. Graphviz itself isdot - graphviz version 2.36.0 (20140111.2315)
.As things are, my only way forward is to generate the graphs offline.
That will also fix the lack of svg support.
- The topic ‘Doesn't work, no idea why’ is closed to new replies.