示例#1
0
 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);
 }
示例#2
0
 public virtual object Clone()
 {
     UndirectedGraph g = new UndirectedGraph();
     this.CopyTo(g);
     return g;
 }