CycleBasis { public Collection cycles() { return simpleBasis().cycles(); } CycleBasis(UndirectedGraph g); int[] weightVector(); Collection cycles(); Collection essentialCycles(); Map relevantCycles(); List equivalenceClasses();  }
@Test public void testCycles() { int trueCycleCount = g.edgeSet().size() - g.vertexSet().size() + new ConnectivityInspector(g).connectedSets().size(); Assert.assertEquals(trueCycleCount, basis.cycles().size()); }