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