Due to organizational changes, the Graphviz web site will see some modifications in the near future. In particular, it will probably no longer provide binary packages for Windows and Macs. The latter can be obtained via Macports or Home Brew. If someone wants to set up Appveyor for Windows, we would be grateful. |

# How to compact a graph ?

Hi everybody. Given the following graph, circo outputs me the graphic you can see in the attachments.

digraph test {

root=node_l0_0

edge [arrowhead=none,arrowtail=none]

node_l0_0 -> node_l1_0

node_l1_0 -> node_l2_0

node_l2_0 -> node_l3_0

node_l3_0 -> node_l4_0

node_l3_0 -> node_l4_1

node_l2_0 -> node_l3_1

node_l3_1 -> node_l4_2

node_l3_1 -> node_l4_3

node_l1_0 -> node_l2_1

node_l2_1 -> node_l3_2

node_l3_2 -> node_l4_4

node_l3_2 -> node_l4_5

node_l2_1 -> node_l3_3

node_l3_3 -> node_l4_6

node_l3_3 -> node_l4_7

node_l0_0 -> node_l1_1

node_l1_1 -> node_l2_2

node_l2_2 -> node_l3_4

node_l3_4 -> node_l4_8

node_l3_4 -> node_l4_9

node_l2_2 -> node_l3_5

node_l3_5 -> node_l4_10

node_l3_5 -> node_l4_11

node_l1_1 -> node_l2_3

node_l2_3 -> node_l3_6

node_l3_6 -> node_l4_12

node_l3_6 -> node_l4_13

node_l2_3 -> node_l3_7

node_l3_7 -> node_l4_14

node_l3_7 -> node_l4_15

}

Does everyone know how can I compact this output ? I've already tried to use edge min lengths and costs (weights) but that didn't work. Thank you.

## Recent comments

- This is a bug that has been

3 weeks 4 days ago - Double edges: even with latest version

3 weeks 4 days ago - If you run dot.exe -V, this

13 weeks 1 day ago - Not sure

13 weeks 2 days ago - What version of Graphviz are

13 weeks 2 days ago - update

38 weeks 6 days ago - re: yum install - Error downloading packages

47 weeks 1 day ago - yum install - Error downloading packages

47 weeks 3 days ago - Hi,
Sorry, I was a little

48 weeks 4 days ago - The difficulties you are

1 year 4 days ago

## How to compact a graph ?

A binary tree, as you have, is tough for circo, since it approximates subgraphs as circular disks since the subgraphs may be attached at any angle to the parent graph. Here, though, the input is very regular and the subgraphs are very tall but thin (or vice versa). Since circo uses the larger value, a lot of space is wasted.