Welcome to PlantUML Q&A, where you can ask questions and receive answers from other members of the community.

You can also submit new features request and vote for them.

Add norank option on links

0 votes

Complex class diagrams are difficult to understand. Using [hidden] links helps somewhat, but adding more control over layout would help.

For instance, it is common to display class diagrams according to their inheritance hierarchy (i.e., ignoring associations for ranking). In PlantUML, as far as I understand, this is only achievable by not displaying associations at all.

Here is a suggestion: adding a [norank] link option (like [hidden]) that would ignore the link for ranking (constraint=false in graphviz) but still show it.

Basically, [norank] (shown but ignored for ranking) is the opposite of [hidden] (not shown but considered for ranking.

For instance:


class B extends A

class C extends A

B -[norank]- C


Note that in this specific case, using a horizontal link between B and C would probably give the same result because they are at the same inheritance level. However, the result would be quite different on more complex class diagrams.


Best regards,

asked Mar 5, 2015 in Wanted features by fred (740 points)

1 Answer

+2 votes
Best answer

We like the idea.

This has been implemented in the last beta :


If you think this is usefull, we will include it in next official release.

Thanks for the suggestion!
answered Mar 5, 2015 by plantuml (122,830 points)
selected Mar 5, 2015 by fred
Tested and working as expected. Thanks!
Support This Project Offer 250 Mo! Follow PlantUML on Twitter