finesse.utilities.graph.remove_orphans

finesse.utilities.graph.remove_orphans(G, inplace=False)[source]

Removes nodes with in and out degree 0 from graph G. This should not need to be recursive.