public class StronglyConnectedComponents extends Object
OntClasses. Uses the subclass relationship to traverse the inheritance forest.
The SCCs of a graph are maximal partitions where every node is reachable from every other node.
Uses the algorithm presented by R. Tarjan in
Depth first search and linear graph algorithms,
which determines the SCCs of an directed graph G = (V, E) in O(|V| + |E|).| Constructor and Description |
|---|
StronglyConnectedComponents() |
| Modifier and Type | Method and Description |
|---|---|
static Collection<Collection<RDFSClazz>> |
findSCCs(Collection<? extends RDFSClazz> seeds)
Returns all SCCs in the inheritance trees with the given classes as roots.
|
public static Collection<Collection<RDFSClazz>> findSCCs(Collection<? extends RDFSClazz> seeds) throws org.openrdf.repository.RepositoryException
seeds - The classes to start searching from.org.openrdf.repository.RepositoryExceptionCopyright © 2017 Chair of Distributed Information Systems - University of Passau. All rights reserved.