/// <summary>
 /// Initializes a new instance of the <see cref="LayeredTopologicalSortAlgorithm{TVertex,TEdge}"/> class.
 /// </summary>
 /// <param name="visitedGraph">Graph to visit.</param>
 public LayeredTopologicalSortAlgorithm(
     [NotNull] IVertexAndEdgeListGraph <TVertex, TEdge> visitedGraph)
     : base(visitedGraph)
 {
     // Create a copy from the graph
     _tmpGraph = visitedGraph.CopyToBidirectionalGraph();
 }