How to only keep nodes in networkx-graph with 2+ outgoing edges or 0 outgoing edges?
Asked 2011-12-20T14:09:53.940
14
I have Directed Graph in networkx. I want to only keep those nodes which have two or more than two outgoing edges or no outgoing edge at all. How do I do this?
or
How do I removes nodes which have exactly one outgoing edge in a networkx graph.