void () { final Map<String, String> arcs = new HashMap<>(); arcs.put("a", "b"); arcs.put("b", "ac"); arcs.put("c", "ad"); arcs.put("d", ""); final Graph<Chunk<String>> graph = getAlgorithmsInstance().computeSCCGraph(initGraph(arcs)); final List<Chunk<String>> expectedNodes = new ArrayList<>(); Chunk<String> ABC = new Chunk<>(Set.of("a", "b", "c")); expectedNodes.add(ABC); Chunk<String> D = new Chunk<>("d"); expectedNodes.add(D); checkVertices(expectedNodes, graph.getNodes()); final Map<Chunk<String>, Set<Chunk<String>>> expectedArcs = new HashMap<>(); expectedArcs.put(ABC, new HashSet<>()); expectedArcs.put(D, Set.of(ABC)); checkArcs(expectedArcs, graph); }