|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectbcds.phison.alg.ConnectedComponents<V,E>
public class ConnectedComponents<V,E>
Identifies the stronly connected components of a given SimGraph.
This is a transcription of the algorithm given in Wikipedia: Strongly Connected Components algorithm
Constructor Summary | |
---|---|
ConnectedComponents(SimGraph<V,E> g)
Instantiates a new object. |
Method Summary | ||
---|---|---|
static
|
make(SimGraph<V,E> g)
A convenience constructor. |
|
java.util.List<java.util.Set<V>> |
stronglyConnectedComponents()
Returns the list of the strongly connected components in the graph. |
|
java.util.List<java.util.Set<V>> |
stronglyConnectedComponents(V v)
Returns the connected component to which the node v belongs. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ConnectedComponents(SimGraph<V,E> g)
Method Detail |
---|
public static <V,E> ConnectedComponents<V,E> make(SimGraph<V,E> g)
public java.util.List<java.util.Set<V>> stronglyConnectedComponents()
public java.util.List<java.util.Set<V>> stronglyConnectedComponents(V v)
v
belongs.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |