(self)
return nodes
Returns all nodes that has an out degree >= 2
Returns all nodes that has an out degree >= 2
Returns all nodes that has an out degree > = 2
def get_branching_nodes(self):
        """
        Returns all nodes that has an out degree >= 2
        """
        nodes = set()
        for n in self.graph.nodes():
            if self.graph.out_degree(n) >= 2:
                nodes.add(n)
        return nodes
def get_branching_nodes ( self ) : nodes = set ( ) for n in self . graph . nodes ( ) : if self . graph . out_degree ( n ) >= 2 : nodes . add ( n ) return nodes