Hi, I am trying to figure out how to set 2 root nodes when using the breadthfirst layout. According to the documentation I’ve seen, defining a single root is like
roots = ‘id =“node ID”’
and multiple roots it’s like:
roots = ‘#node1 ID, #node2 ID’
The single root works fine, it will present a graph where the root node is at the top and you get this top-down spread of nodes.
However for the multiple roots, it just becomes a single line with all nodes lined-up in a straight line.
As an example, I’m trying to achieve something similar to the following:
Node1 Node2
| |
Node3 Node4
/ \ / \
Node5 Node6 Node7 Node8
/ \ \ / \ \
Node9 NodeA \ / NodeB
\ /
NodeD
Can someone point me out in the right direction for this to work?