/// <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); }
/// <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; }
/// <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; }
/// <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; }