@Test
public void testCycles() {

    int trueCycleCount = g.edgeSet().size() - g.vertexSet().size()
            + new ConnectivityInspector(g).connectedSets().size();
    Assert.assertEquals(trueCycleCount, basis.cycles().size());
}