minor fix

This commit is contained in:
DOHA
2019-08-02 14:35:52 +03:00
parent 5fabe70b8a
commit b96425265b
3 changed files with 24 additions and 16 deletions

View File

@@ -1,5 +1,7 @@
package com.baeldung.graph;
import java.util.List;
import org.junit.Test;
public class GraphUnitTest {
@@ -15,7 +17,8 @@ public class GraphUnitTest {
@Test
public void givenDirectedGraph_whenGetTopologicalSort_thenPrintValuesSorted() {
Graph graph = createDirectedGraph();
graph.topologicalSort(0);
List<Integer> list = graph.topologicalSort(0);
System.out.println(list);
}
private Graph createDirectedGraph() {