I've read this post Name of data structure that's tree-like with multiple root nodes. What I'm asking for is not a forest.
I would give you a simple example that easily depicts my case.
You have a usual power source from EB and an inverter (alternate power source) in your house. Consider these as the root nodes. And the next level are the monitoring meters at every room. And at the next level you have your equipment like Fan, AC, Fridge etc.
In this tree the first level are the list of power sources and the second-to-nth level will have the energy flow till the consumption equipment.
Is there any suitable data structure to depict this tree which has multiple root nodes?
Image of the Required Structure