Report question

Question: How to only keep nodes in networkx-graph with 2+ outgoing edges or 0 outgoing edges?