added feature to save graphml and adjacency matrix of the generated graph