graphit/graph.py
def clear(self):
        """
        Clear nodes and edges in the graph.
        
        If the Graph instance represents a sub graph, only those nodes and edges
        will be removed.
        """
        
        self.nodes.clear()
        self.edges.clear()
        
        # Reset node ID counter if the full graph is cleared
        if len(self) == len(self.origin):
            self._nodeid = 0

        Clear nodes and edges in the graph.
        
        If the Graph instance represents a sub graph, only those nodes and edges
        will be removed.
        
Clear nodes and edges in the graph.
If the Graph instance represents a sub graph, only those nodes and edges
will be removed.
Clear nodes and edges in the graph . If the Graph instance represents a sub graph only those nodes and edges will be removed .
def clear(self):
        self.nodes.clear()
        self.edges.clear()
        if len(self) == len(self.origin):
            self._nodeid = 0
def clear ( self ) : self . nodes . clear ( ) self . edges . clear ( ) if len ( self ) == len ( self . origin ) : self . _nodeid = 0
Clear nodes and edges in the graph.
Clear nodes and edges in the graph .
"""
        Clear nodes and edges in the graph.
        
        If the Graph instance represents a sub graph, only those nodes and edges
        will be removed.
        """ # Reset node ID counter if the full graph is cleared
self