CycleBasis { public Map relevantCycles() { Map result = new HashMap(); for (SimpleCycleBasis subgraphBase : subgraphBases) { SimpleCycleBasis cycleBasis = subgraphBase; result.putAll(cycleBasis.relevantCycles()); } return result; } CycleBasis(UndirectedGraph g); int[] weightVector(); Collection cycles(); Collection essentialCycles(); Map relevantCycles(); List equivalenceClasses();  }
@Test public void testRelevantCycles() { Assert.assertEquals(4, basis.relevantCycles().size()); }