@Test public void spiro() throws Exception { Graph g = Graph.fromSmiles("C1CCCCC11CCCCC1"); BiconnectedComponents bc = new BiconnectedComponents(g); assertThat(bc.components().size(), is(2)); assertThat(bc.components().get(0).size(), is(6)); assertThat(bc.components().get(0).size(), is(6)); }
public List<List<Edge>> components() { return Collections.unmodifiableList(components); }
BiconnectedComponents { public List<List<Edge>> components() { return Collections.unmodifiableList(components); } }
BiconnectedComponents { public List<List<Edge>> components() { return Collections.unmodifiableList(components); } BiconnectedComponents(Graph g);   BiconnectedComponents(Graph g, boolean storeComponents); }
BiconnectedComponents { public List<List<Edge>> components() { return Collections.unmodifiableList(components); } BiconnectedComponents(Graph g);   BiconnectedComponents(Graph g, boolean storeComponents); List<List<Edge>> components(); boolean connected(); }
BiconnectedComponents { public List<List<Edge>> components() { return Collections.unmodifiableList(components); } BiconnectedComponents(Graph g);   BiconnectedComponents(Graph g, boolean storeComponents); List<List<Edge>> components(); boolean connected();  }