(self)
Clears the graph, deleting all vertices, edges, and attributes.

        @see: L{delete_vertices} and L{delete_edges}.
Clears the graph, deleting all vertices, edges, and attributes.
Clears the graph deleting all vertices edges and attributes .
def clear(self):
        """Clears the graph, deleting all vertices, edges, and attributes.

        @see: L{delete_vertices} and L{delete_edges}.
        """
        self.delete_vertices()
        for attr in self.attributes():
            del self[attr]
def clear ( self ) : self . delete_vertices ( ) for attr in self . attributes ( ) : del self [ attr ]