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

- re: yum install - Error downloading packages

6 days 16 min ago - yum install - Error downloading packages

1 week 1 day ago - Hi,
Sorry, I was a little

2 weeks 2 days ago - The difficulties you are

6 weeks 3 days ago - Is there a question?

10 weeks 20 hours ago - same problem: png not recognized

10 weeks 1 day ago - Thank you

10 weeks 3 days ago - The obvious answer is that

10 weeks 3 days ago - There is no real time help.

10 weeks 3 days ago - Outdated links

10 weeks 5 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.