Exemplo n.º 1
0
        /// <summary>
        /// Clones this instance.
        /// </summary>
        /// <returns>The cloned OrthogonalListGraph.</returns>
        public OrthogonalListGraph Clone()
        {
            var graph = new OrthogonalListGraph(_topologyManager);

            foreach (var item in _vertexList)
            {
                graph._vertexList.Add(item);
            }
            foreach (var item in _edgeList)
            {
                graph._edgeList.Add(item);
            }

            return(graph);
        }
Exemplo n.º 2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Algorithm"/> class.
 /// </summary>
 /// <param name="graph">The orthogonal list graph.</param>
 public Algorithm(OrthogonalListGraph graph)
 {
     _graph = graph;
 }
Exemplo n.º 3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Algorithm"/> class.
 /// </summary>
 /// <param name="graph">The orthogonal list graph.</param>
 public Algorithm(OrthogonalListGraph graph)
 {
     _graph = graph;
 }
Exemplo n.º 4
0
        /// <summary>
        /// Clones this instance.
        /// </summary>
        /// <returns>The cloned OrthogonalListGraph.</returns>
        public OrthogonalListGraph Clone()
        {
            var graph = new OrthogonalListGraph(_topologyManager);
            foreach (var item in _vertexList) {
                graph._vertexList.Add(item);
            }
            foreach (var item in _edgeList) {
                graph._edgeList.Add(item);
            }

            return graph;
        }