Layout of Packages on Class Diagram

0 votes
asked Oct 4, 2016 in To be sorted by anonymous
I have an overview diagram of all the classes in all packages. I do not display any of the relationships between the classes or packages because the diagram gets too busy. Although some of the packages are displayed in a grid-like pattern (appears to be the packages with more than 5 classes or so), other packages (seem to be ones with only a few classes) are laid out in width, making the diagram a very large width with lots of whitespace.

I realize that GraphViz is to blame here. Any tips or tricks for improving the layout? I can't use the "vertical" relationship trick since there are no relationships being shown.


1 Answer

+2 votes
answered Oct 5, 2016 by JohannesMeier (460 points)

Did you saw the hidden tag for relationships, documented at

I created a small example how to use this tag for your use case:

Does that help you?

commented Oct 5, 2016 by anonymous
Thanks! That looks promising. I didn't realize I could use that for packages as well. I'll give it a try.