viz-js
viz-js copied to clipboard
viz.js fails on graph with records
digraph "example3" {
graph ["rankdir"="LR"]
node ["fontname"="Arial","fontsize"="10"]
"node0" ["shape"="record","label"="<f0>|<f1>|<f2>|<f3>|<f4>"]
"node1" ["shape"="record","label"="{n4|<v>719|}"]
"node2" ["shape"="record","label"="{a1|805|<p>}"]
"node3" ["shape"="record","label"="{i9|718|}"]
"node4" ["shape"="record","label"="{e5|989|<p>}"]
"node5" ["shape"="record","label"="{t2|<v>959|}"]
"node6" ["shape"="record","label"="{o1|794|}"]
"node7" ["shape"="record","label"="{s7|659|}"]
"node0":"f0" -> "node1":"v":s
"node0":"f1" -> "node2":w
"node0":"f2" -> "node3":w
"node0":"f3" -> "node4":w
"node0":"f4" -> "node5":"v":n
"node2":"p" -> "node6":nw
"node4":"p" -> "node7":sw
}
This fails in viz.js with the message
libpath/shortest.c:324: triangulation failed
libpath/shortest.c:200: destination point not in any triangle
Error: in routesplines, Pshortestpath failed
But it works in the native dot program.
When I change the fontname or the last two lines into "node2":"p" -> "node6":"o1":nw; "node4":"p" -> "node7":"s7":sw it also works.
Any ideas what this could be?