Added clear method to clear all vertices and edges from the graph