private void collapseSCC() final List<Set<EntityNode<E>>> components = SCC.computeSCC(this); for (final Set<EntityNode<E>> component : components)
private void collapseSCC() final List<Set<EntityNode<E>>> components = SCC.computeSCC(this); for (final Set<EntityNode<E>> component : components)
private void testSCC(final int[][] expectedSCC) { final List<Set<EntityNode<OWLClass>>> computed = SCC.computeSCC(_graph); assertEquals("SCC count", expectedSCC.length, computed.size()); for (final int[] component : expectedSCC) { final Set<EntityNode<OWLClass>> set = new HashSet<>(); for (final int i : component) set.add(_nodes[i]); assertTrue(computed.contains(set)); } }