|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjpaul.Graphs.GraphUtil
public final class GraphUtil
GraphUtil is a wrapper for various graph utilities.
It is a non-instantiatable class with useful static members; it is a
graph-equivalent of java.util.Collections.
| Method Summary | ||
|---|---|---|
static
|
cachedFwdNavigator(ForwardNavigator<Vertex> fnav)
|
|
static
|
reverseBiDiNavigator(BiDiNavigator<Vertex> nav)
Returns the reverse of a given navigator. |
|
static
|
unionFwdNav(ForwardNavigator<V> fn1,
ForwardNavigator<V> fn2)
Unions two ForwardNavigator. |
|
static
|
unionNav(BiDiNavigator<V> n1,
BiDiNavigator<V> n2)
Unions two BiDiNavigator. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static <V> BiDiNavigator<V> unionNav(BiDiNavigator<V> n1,
BiDiNavigator<V> n2)
BiDiNavigator. For each vertex
v, successors/predecessors indicated by the union
navigator consist of all the successors/predecessors indicated
by n1, followed by all the
successors/predecessors indicated by n2. Note
that the same successor/predecessor may be indicated twice,
once by fn1 and once by fn2.
public static <V> ForwardNavigator<V> unionFwdNav(ForwardNavigator<V> fn1,
ForwardNavigator<V> fn2)
ForwardNavigator. For each vertex
v, successors indicated by the union navigator
consist of all the successors indicated by fn1,
followed by all the successors indicated by fn2.
Note that the same successors may be indicated twice, once by
fn1 and once by fn2.
public static <Vertex> BiDiNavigator<Vertex> reverseBiDiNavigator(BiDiNavigator<Vertex> nav)
next method returns the
same result as nav.prev, and the prev
method returns the same result as nav.next.
public static <Vertex> ForwardNavigator<Vertex> cachedFwdNavigator(ForwardNavigator<Vertex> fnav)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||