|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.tensegrity.graph.algorithm.TransitiveClosure
Takes a graph and outputs a new (and probably more dense) graph which has direct edges for transitive connectivity information that was originally only reachable by traversing multiple nodes. This algorithm works in
O(|E|)time and is likely the algorithm of choice. Nevertheless, the
AllPairsShortestPath algorithm implicitly computes a transitive
closure as well.
| Constructor Summary | |
TransitiveClosure()
Constructs a new stateless instance of the TransitiveClosure algorithm. |
|
| Method Summary | |
Graph |
apply(Graph input)
Computes the transitive closure Graph for the given
input Graph. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public TransitiveClosure()
TransitiveClosure algorithm.
| Method Detail |
public Graph apply(Graph input)
throws GraphException
Graph for the given
input Graph.
apply in interface TransformAlgorithminput - the input Graph.
Graph.
GraphException - if creation of the output Graph failed.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||