org.jgrapht.alg
Class TransitiveClosure
- java.lang.Object
-
- org.jgrapht.alg.TransitiveClosure
-
public class TransitiveClosure extends java.lang.ObjectConstructs the transitive closure of the input graph.- Since:
- May 5, 2007
-
-
Field Summary
Fields Modifier and Type Field and Description static TransitiveClosureINSTANCESingleton instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description <V,E> voidcloseDirectedAcyclicGraph(DirectedAcyclicGraph<V,E> graph)Computes the transitive closure of a directed acyclic graph in O(n*m)<V,E> voidcloseSimpleDirectedGraph(SimpleDirectedGraph<V,E> graph)Computes the transitive closure of the given graph.
-
-
-
Field Detail
-
INSTANCE
public static final TransitiveClosure INSTANCE
Singleton instance.
-
-
Method Detail
-
closeSimpleDirectedGraph
public <V,E> void closeSimpleDirectedGraph(SimpleDirectedGraph<V,E> graph)
Computes the transitive closure of the given graph.- Type Parameters:
V- the graph vertex typeE- the graph edge type- Parameters:
graph- - Graph to compute transitive closure for.
-
closeDirectedAcyclicGraph
public <V,E> void closeDirectedAcyclicGraph(DirectedAcyclicGraph<V,E> graph)
Computes the transitive closure of a directed acyclic graph in O(n*m)- Type Parameters:
V- the graph vertex typeE- the graph edge type- Parameters:
graph- - Graph to compute transitive closure for.
-
-
DataMelt 3.0 © DataMelt by jWork.ORG