Organise nodes in network by connections

Hi,

I have a network of Persons and factories…
I need to show all factories connected to a specific one by persons but i need to organize them like groups.
I need that all persons will be around the main Factory, and all other factories will be around every person.
How can i achieve that?

Thanks

You could look into a d3 force directed graph, or some graph layout tool like Graphviz. With those tools you’ll be thinking more about the connections from each part of the network, and the tool will handle the layout.