Exemple #1
0
 public AdjacencyGraph <TVertex, TEdge> Clone()
 {
     return(new AdjacencyGraph <TVertex, TEdge>(
                _vertexEdges.Clone(),
                EdgeCount,
                EdgeCapacity,
                AllowParallelEdges));
 }
        /// <summary>
        /// Clones this graph.
        /// </summary>
        /// <returns>Cloned graph.</returns>


        public UndirectedGraph <TVertex, TEdge> Clone()
        {
            return(new UndirectedGraph <TVertex, TEdge>(
                       _edges.ToList(),
                       _adjacentEdges.Clone(),
                       EdgeEqualityComparer,
                       EdgeCapacity,
                       AllowParallelEdges));
        }
 public BidirectionalGraph <TVertex, TEdge> Clone()
 {
     return(new BidirectionalGraph <TVertex, TEdge>(
                vertexInEdges.Clone(),
                vertexOutEdges.Clone(),
                EdgeCount,
                edgeCapacity,
                allowParallelEdges
                ));
 }