Class DAGraphImpl<T extends TNode>

  • All Implemented Interfaces:
    DAGraph<T>

    public class DAGraphImpl<T extends TNode>
    extends java.lang.Object
    implements DAGraph<T>
    • Constructor Detail

      • DAGraphImpl

        public DAGraphImpl​(java.util.List<T> collection,
                           boolean[][] directlyCauses)
        This constructor create a directed acyclic graph and deduce eventually follows relation from directlyCauses
        Parameters:
        collection -
        directlyCauses -
      • DAGraphImpl

        public DAGraphImpl​(java.util.List<T> collection,
                           boolean[][] directlyCauses,
                           boolean[][] eventuallyCauses)
    • Method Detail

      • projectOn

        public DAGraph<T> projectOn​(java.util.List<T> nodes)
        Creates a new DAGraph, projects this DAGraph on the set of nodes, and copies directly-follows and eventually-follows relations of the nodes.
        Specified by:
        projectOn in interface DAGraph<T extends TNode>
      • computeEventuallyWarshall

        public static boolean[][] computeEventuallyWarshall​(boolean[][] directlyCauses)
      • getNodes

        public java.util.Set<T> getNodes()
        Specified by:
        getNodes in interface DAGraph<T extends TNode>