Package org.processmining.lip.model
Class DAGraphImpl<T extends TNode>
- java.lang.Object
-
- org.processmining.lip.model.DAGraphImpl<T>
-
-
Constructor Summary
Constructors Constructor Description DAGraphImpl(java.util.List<T> collection, boolean[][] directlyCauses)This constructor create a directed acyclic graph and deduce eventually follows relation from directlyCausesDAGraphImpl(java.util.List<T> collection, boolean[][] directlyCauses, boolean[][] eventuallyCauses)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static boolean[][]computeEventuallyWarshall(boolean[][] directlyCauses)java.util.List<T>getConcurrentNodes(T node)java.util.List<T>getDirectlyPredecessors(T node)java.util.List<T>getDirectlySuccessors(T node)java.util.List<T>getEventuallyPredecessors(T node)java.util.List<T>getEventuallySuccessors(T node)java.util.Set<T>getNodes()booleanisDirectlyCauses(T source, T target)booleanisEventuallyCauses(T source, T target)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.
-
-
-
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.
-
computeEventuallyWarshall
public static boolean[][] computeEventuallyWarshall(boolean[][] directlyCauses)
-
getNodes
public java.util.Set<T> getNodes()
-
getConcurrentNodes
public java.util.List<T> getConcurrentNodes(T node)
- Specified by:
getConcurrentNodesin interfaceDAGraph<T extends TNode>
-
getDirectlyPredecessors
public java.util.List<T> getDirectlyPredecessors(T node)
- Specified by:
getDirectlyPredecessorsin interfaceDAGraph<T extends TNode>
-
getEventuallyPredecessors
public java.util.List<T> getEventuallyPredecessors(T node)
- Specified by:
getEventuallyPredecessorsin interfaceDAGraph<T extends TNode>
-
getDirectlySuccessors
public java.util.List<T> getDirectlySuccessors(T node)
- Specified by:
getDirectlySuccessorsin interfaceDAGraph<T extends TNode>
-
getEventuallySuccessors
public java.util.List<T> getEventuallySuccessors(T node)
- Specified by:
getEventuallySuccessorsin interfaceDAGraph<T extends TNode>
-
isDirectlyCauses
public boolean isDirectlyCauses(T source, T target)
- Specified by:
isDirectlyCausesin interfaceDAGraph<T extends TNode>
-
-