Is the !pragma directive still usable to pass on specific attributes to Graphviz?
I was trying to use the following pragma in order to pack unrelated states nicely without having to add hidden transitions:
!pragma graphattributes packmode=<packMode>;
with <packMode> selected from: https://graphviz.org/doc/info/attrs.html#k:packMode
There seems to be a nice default for class diagrams (although one might sometimes want other kinds of packing):
and object diagrams:
but less so for state diagrams:
Here is the corresponding code (which can also be obtained from the above picture or its URL):
Note that this is a simplified example, and it could be argued that state diagrams should have at most one connected component. However, this question is also of interest for cases where we want to pass on other kinds of attributes to Graphviz.