I have two sets of nodes (green and red), see the attached image. Each subset of nodes can be arranged in a hierarchical layout using hierarchical: true from the vi
hierarchical: true