StronglyConnectedComponents { public static Collection<Collection<RDFSClazz>> findSCCs(Collection<? extends RDFSClazz> seeds) throws RepositoryException { Collection<Collection<RDFSClazz>> cycles = new HashSet<>(); for (RDFSClazz clazz : seeds) { strongConnect(clazz, cycles, new HashMap<RDFSClazz, Node>(), new Stack<Node>(), new IndexGenerator()); } return cycles; }  static Collection<Collection<RDFSClazz>> findSCCs(Collection<? extends RDFSClazz> seeds);  }
@Test public void findSCCs() throws Exception { Collection<RDFSClazz> seeds = Sets.newHashSet( anno4j.findByID(RDFSClazz.class, "http: anno4j.findByID(RDFSClazz.class, "http: anno4j.findByID(RDFSClazz.class, "http: anno4j.findByID(RDFSClazz.class, "http: anno4j.findByID(RDFSClazz.class, "http: anno4j.findByID(RDFSClazz.class, "http: anno4j.findByID(RDFSClazz.class, "http: anno4j.findByID(RDFSClazz.class, "http: anno4j.findByID(RDFSClazz.class, "http: anno4j.findByID(RDFSClazz.class, "http: anno4j.findByID(RDFSClazz.class, "http: anno4j.findByID(RDFSClazz.class, "http: anno4j.findByID(RDFSClazz.class, "http: anno4j.findByID(RDFSClazz.class, "http: anno4j.findByID(RDFSClazz.class, "http: anno4j.findByID(RDFSClazz.class, "http: ); assertEquals(sccs, StronglyConnectedComponents.findSCCs(seeds)); }