preheat_open.unit_graph.obtain_loop

preheat_open.unit_graph.obtain_loop(graph, id)

Function which first finds a tree, based on id of origin unit/node. The end nodes of the tree are then connected back to the origin, to form a loop/circuit – for circuit analysis.