Modifier and Type | Class and Description |
---|---|
(package private) static class |
Graphs.SynchronizedEdge |
(package private) static class |
Graphs.SynchronizedElement<U extends Element> |
(package private) static class |
Graphs.SynchronizedGraph |
(package private) static class |
Graphs.SynchronizedNode |
Constructor and Description |
---|
Graphs() |
Modifier and Type | Method and Description |
---|---|
private static Object |
checkedArrayOrCollectionCopy(Object o) |
static Graph |
clone(Graph g)
Clone a given graph with same node/edge structure and same attributes.
|
static void |
copyAttributes(Element source,
Element target) |
static Graph |
merge(Graph... graphs)
Merge several graphs in one.
|
static void |
mergeIn(Graph result,
Graph... graphs)
Merge several graphs in one.
|
static Graph |
synchronizedGraph(Graph g)
Synchronizes a graph.
|
static Graph |
unmutableGraph(Graph g) |
public Graphs()
public static Graph unmutableGraph(Graph g)
public static Graph synchronizedGraph(Graph g)
g
- the graph to synchronizepublic static Graph merge(Graph... graphs)
graphs
- graphs to mergepublic static void mergeIn(Graph result, Graph... graphs)
result
- destination graph.graphs
- all graphs that will be merged in result.public static Graph clone(Graph g)
g
- the graph to clonepublic static void copyAttributes(Element source, Element target)
source
- target
- private static Object checkedArrayOrCollectionCopy(Object o)
WebARTS Library Licensed Under the GNU - General Public License. Other Libraries licensed under their respective Open Source Licenses