Package org.apache.jena.riot.other
Class Transitive
- java.lang.Object
-
- org.apache.jena.riot.other.Transitive
-
public class Transitive extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description Transitive()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.util.Map<Node,java.util.Collection<Node>>transitive(Graph graph, Node property)Calculate the transitive closure of a property.static voidtransitiveExc(Graph graph, boolean forward, Node node, Node predicate, java.util.Collection<Node> output)Transitive closure of a property from a start node, excluding the start node unless reachable via a cycle.static voidtransitiveInc(Graph graph, boolean forward, Node node, Node predicate, java.util.Collection<Node> output)Transitive closure of a property from a start node, and including the start node.
-
-
-
Method Detail
-
transitive
public static java.util.Map<Node,java.util.Collection<Node>> transitive(Graph graph, Node property)
Calculate the transitive closure of a property. Returns a map of node to all reachable nodes.
-
transitiveInc
public static void transitiveInc(Graph graph, boolean forward, Node node, Node predicate, java.util.Collection<Node> output)
Transitive closure of a property from a start node, and including the start node.
-
-