Manipulating angles of different structures and orienting it's angles as per connected pipes

Hi all,

Ill try to keep this post clean and lean but i’ve been giving some jabs on this graph.
I’m blocked since i don’t understand 100% how visual programming works for certain aspects

So i’ve done a bit of testing was able to simply SetRotation on different Structures.

I’d like to add a layer of complexion and validate the connected pipes on the structure and rotate the structure as per it’s most connected pipe that has the same bearing.

Any thoughts on how a workflow that i can achieve this ?

I’m looking for a “brainstorming” type of help just to get me in the right direction :slight_smile:

Cause right now - I’ve got the white page syndrome.
Tia