void () { final Map<String, String> graph = new HashMap<>(); graph.put("s", "abcdt"); graph.put("a", "b"); graph.put("b", "c"); graph.put("c", "d"); graph.put("d", "t"); graph.put("t", ""); doTest(graph, "st", "sdt", "scdt", "sbcdt", "sabcdt"); }