Removes Transfernodes of Degree 1 from the network. This prevents the network being padded with nodes that don't do anything
RemoveDeadEnds(g, iteration = 1)
| g | An igraph object representing a power network |
|---|---|
| iteration | the number of times the function has recursively removed nodes. Default start is 1 |