Class 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 void transitiveExc​(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 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.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Transitive

        public Transitive()
    • 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.
      • transitiveExc

        public static void transitiveExc​(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.