|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.kuka.graph.Graphs
public final class Graphs
Contains helper methods for working with graphs.
| Method Summary | ||
|---|---|---|
static
|
addGraph(Graph<N,E> destination,
Graph<N,E> source)
Adds all nodes and edges in the source graph to the destination graph if they are not already present. |
|
static
|
emptyGraph()
Returns the empty graph (immutable). |
|
static
|
emptyPath()
Returns the empty path (immutable). |
|
static
|
unmodifiableGraph(Graph<N,E> graph)
Returns an unmodifiable view of the specified graph. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static <N,E> boolean addGraph(Graph<N,E> destination,
Graph<N,E> source)
N - the type of nodesE - the type of edgesdestination - the destination graphsource - the source graph
public static <N,E> Graph<N,E> unmodifiableGraph(Graph<N,E> graph)
The returned graph will be serializable if the specified collection is serializable.
N - the type of nodesE - the type of edgesgraph - the graph for which an unmodifiable view is to be returned
public static <N,E> Graph<N,E> emptyGraph()
N - the type of nodesE - the type of edges
public static <N,E> Path<N,E> emptyPath()
N - the type of nodesE - the type of edges
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||