public TopologicalSort(DirectedGraph graph) { this.graph = graph; vertices = graph.Vertices; Dfs = new DepthFirstSearch(graph); }