public class Graphs
extends java.lang.Object
Constructor and Description |
---|
Graphs() |
Modifier and Type | Method and Description |
---|---|
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 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 clone