Mindmap with multi-root nodes and same child nodes

0 votes
asked May 10, 2024 in Question / help by 3dSquare (140 points)
edited May 11, 2024 by 3dSquare
Hi,

this is either a request for help if it's already possible or a wanted feature.

Multiple root nodes are already possible as per GitHub issue.

What I wish to achieve is to have two root nodes and two child nodes that are referenced to each root node without duplication.

I have tried the following:

@startmindmap
* A
** X
** Y

* B
** X
** Y
@endmindmap

But this simply duplicates the X and Y child nodes and has each root node relate to them instead of referencing the same ones. Is it possible to make change the mind map in a way so A and B have a relation to the same X and Y child nodes?

I asked ChatGPT for help, but it produced something that does not do what I asked it for and that's not documented on the mindmap page:

@startmindmap
* A
** X
** Y

* B
** $A.X
** $A.Y
@endmindmap

Best
3dSquare

1 Answer

0 votes
answered Mar 7 by dickmaley (4,120 points)
edited Mar 7 by dickmaley

Here is one solution

image

@startuml
usecase A
usecase B
usecase X
usecase Y

A --> X
A --> Y
B --> X
B --> Y
@enduml

...