Restrict graph to a specific format
<p>I have a very large graph made of several group of sub-graphs.</p>

<p><a href="https://i.stack.imgur.com/6RS2p.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/6RS2p.jpg" alt="My current graph"></a></p>

<p>I would like the groups of node to be distributed vertically and not horizontally.
Is there a way to restrict this graph to a specific format? Or at least to change this horizontal structure?</p>