void (String in, String out) { LinearGraph graph = LinearGraphParser.parse(in); EdgesInRowGenerator edgesInRowGenerator = new EdgesInRowGenerator(graph); assertEquals(out, edgesInRowToStr(edgesInRowGenerator, graph.nodesCount())); }