I'm attempting to create a useful ER diagram. In some cases, the diagram ends up super wide because there are many nodes all within the same rank. This can happen for example when many nodes have no connections at all; those nodes are all in the same rank and layout horizontally next to each other.
What I'd like is some kind of compaction where the graph's overall aspect ratio is closer to, say, 4:3. I'm currently using the dot layout. I had used neato in the past but it was far too slow with large graphs and didn't produce great results.
Here's one graph which goes on for miles in either direction:
If I apply "ratio=compress" and "size=4,4" (or various other sizes) then I end up with a slightly more compact version, which did sorta wrap the one rank onto two lines, but it's still super crazy horizontal.
Other options like "ratio=1.0" which should produce a square diagaram, don't attempt to apply layout in a square area, but instead scale/stretch the super-wide layout to be square, which is even worse.