enter image description hereHow can I reduce the edge length of specific nodes in circo engine of graphviz. Here is the simple dot file of 19 nodes and 22 edges. I compiled using the command:
circo "input-filename" -Gstart=5 -Gsize=1,2! -Gdpi=300 -Teps -o "output-filename"
digraph graphname {
node [fontname = "times-roman-bold",fontsize=12];
edge [fontname = "times-roman-bold",fontsize=12];
rankdir=LR;
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
1 -> 2
2 -> 3
3 -> 5
3 -> 4
4 -> 5
5 -> 6
6 -> 8
6 -> 7
7 -> 8
8 -> 9
9 -> 11
9 -> 10
10 -> 14
11 -> 12
12 -> 14
12 -> 13
13 -> 17
14 -> 15
15 -> 16
15 -> 17
16 -> 19
17 -> 18
}
Due to requirements, we need to compile using circo engine only. Here I am attaching the output generated. And my doubt is how can I reduce the edge length between nodes 8 and 9 (8 -> 9) edge. Please help. Thanks a lot in advance.
You can't directly influence edge length in circo, but you can add invisible nodes or edges to influence the layout.
Here's an example showing what happens if you add invisible edges from every node to the last node in your diagram: