Method InsertRange
InsertRange(int, IEnumerable<Node<TNodeValue, TEdgeLabel>>)
Inserts the nodes in a collection into the directed graph at the specified index.
public void InsertRange(int index, IEnumerable<Node<TNodeValue, TEdgeLabel>> collection)
Parameters
index
intThe zero-based index at which the node collection should be inserted.
collection
IEnumerable<Node<TNodeValue, TEdgeLabel>>The collection of nodes to insert into the directed graph.
Remarks
If any of the nodes in the collection are already in the directed graph, they will be moved into the new index position. Any successor nodes which are not in the graph will also be added in depth-first order.