Remove duplicated arrows

0 votes
asked Nov 30, 2022 in Question / help by Robert de Biro
Hi,

When I include .uml file one into another, due to defined class dependencies, I get duplicated arrow.

So, this is expected behavior, but I am wondering, if there is some possibilty to say to PlantUML that I want to remove every redundant i.e. duplicated arrow in the file?

1 Answer

0 votes
answered Dec 5, 2022 by Todd Musheno (2,680 points)
Could you provide an example of how to recreate?
commented Dec 5, 2022 by The-Lu (64,340 points)

Here is an example :

- File a.iuml

@startuml
component b
a -> b
b -> c
c --> e : arrow from file a
@enduml

- File b.puml

@startuml
!include a.iuml
a -> b
b --> d
c --> e : arrow from file b
@enduml

Then the initial question is:

  1. How to have only one arrow from a to b?
  2. And also perhaps only one arrow from c to e.

Regards.

...