Combination of GridLayout and LayeredDigraphLayout

Hi,
I have developed a diagram using LayeredDigraphLayout. In the diagram, I do have a few connected nodes and a few non-relational nodes. If I do use LayeredDigraphLayout after displaying all the connected nodes, it displays the rest of the distinct nodes one after another. Currently, it is looking like this:

I would like to print all the connected nodes using LayeredDigraphLayout, and after that would like to show the rest of the nodes in multiple horizontal (something like the GridLayout) lines. What could be the best possible way to achieve this?

Thanks,
MB

Use the ArrangingLayout extension: https://gojs.net/latest/extensions/Arranging.html

Hi Walter, thanks for the link! Yup! I am looking for something like this. Will play with it.
Thanks,
MB