@Test
public void topologicalSort() {

    List<Character> result = graph.topologicalSort();
    List<Character> expected = Arrays.asList('D', 'E', 'A', 'B', 'F', 'G', 'C');
    assertEquals(expected, result);
}