nadavrot / layout

Layout is a rust library and a tool that renders Graphviz dot files.
MIT License
656 stars 39 forks source link

crash: Boxes must not intersect #14

Open DavidBJaffe opened 1 year ago

DavidBJaffe commented 1 year ago

This input

digraph G {
node [width=0.13,height=0.13,fontsize=10,shape=point];
edge [fontsize=18,penwidth=1.3,arrowsize=1.3,fontname=Arial];
rankdir=LR;
labeljust=l;
margin=0;
10 -> 2 [minlen=1,color=black,label="0 (len=31,supp=56)"];
11 -> 10 [minlen=2,color=red,label="1 (len=402,supp=496)"];
10 -> 2 [minlen=1,color=black,label="2 (len=31,supp=20)"];
0 -> 8 [minlen=2,color=red,label="3 (len=154,supp=113)"];
5 -> 0 [minlen=1,color=black,label="4 (len=20,supp=27)"];
5 -> 0 [minlen=1,color=black,label="5 (len=20,supp=12)"];
2 -> 5 [minlen=1,color=black,label="6 (len=19,supp=51)"];
}

yields this error

Boxes must not intersect

0: ◼ layout-rs-0.1.1/src/topo/placer/verifier.rs:22

1: layout::topo::placer::verifier
   ◼ at layout-rs-0.1.1/src/topo/placer/verifier.rs:22:13
   layout::topo::placer::verifier
   ◼ at layout-rs-0.1.1/src/topo/placer/verifier.rs:5:5

2: layout::topo::placer::place::Placer
   ◼ at layout-rs-0.1.1/src/topo/placer/place.rs:60:9

3: layout::topo::layout::VisualGraph
   ◼ at layout-rs-0.1.1/src/topo/layout.rs:146:9