public virtual void CopyTo(out IGraph graph) { graph = new UndirectedGraph(); UndirectedGraph g = graph as UndirectedGraph; g.vertices = new List<IVertex>(this.vertices); g.edges = new List<IEdge>(this.edges); }
public virtual object Clone() { UndirectedGraph g = new UndirectedGraph(); this.CopyTo(g); return g; }