Exemplo n.º 1
0
 public VertexList Clone()
 {
     var vertexList = new VertexList();
     foreach (var vertex in from DictionaryEntry entry in _vertices select (IVertex)entry.Value)
     {
         vertexList.Add(vertex.Clone());
     }
     return vertexList;
 }
Exemplo n.º 2
0
        public VertexList Clone()
        {
            var vertexList = new VertexList();

            foreach (var vertex in from DictionaryEntry entry in _vertices select(IVertex) entry.Value)
            {
                vertexList.Add(vertex.Clone());
            }
            return(vertexList);
        }
Exemplo n.º 3
0
 public Graph(GraphType type)
 {
     Type = type;
     Vertices = new VertexList();
     Edges = new List<Edge>();
 }
Exemplo n.º 4
0
 public Graph(GraphType type)
 {
     Type     = type;
     Vertices = new VertexList();
     Edges    = new List <Edge>();
 }