add clone() to UndirectedGraph and Bipartite