Avoid edge intersection in graphviz

graphviz

Solution

when it comes to graphviz layout, the best you can do is trying as much as possible to not interfere :)

taking out compass_pt from your file:

digraph Test {

    Start[shape = doublecircle];
    Foo[shape = square];
    Bar[shape = diamond];
    Baz[shape = square];
    Xyz[shape = square];

    Start -> Foo;
    Foo -> Bar;
    Bar -> Baz;
    Bar -> Xyz;
    Baz -> Foo;

}

and you get:

Problem

Suppose we have the following simple graph: ``` digraph Test { Start[shape = doublecircle]; Foo[shape = square]; Bar[shape = diamond]; Baz[shape = square]; Xyz[shape = square]; Start -> Foo; Foo:s -> Bar:n; Bar:w -> Baz:n; Bar:e -> Xyz:n; Baz:s -> Foo:n; } ``` Which is rendered as follows: Is there a way to tell graphviz to draw edge `Baz -> Foo` without intersections with `Foo -> Bar` nor `Bar -> Baz`?

Original source