org.graphstream.graph.implementations
Class Graphs
java.lang.Object
org.graphstream.graph.implementations.Graphs
public class Graphs
- extends Object
Graphs
public Graphs()
unmutableGraph
public static Graph unmutableGraph(Graph g)
synchronizedGraph
public static Graph synchronizedGraph(Graph g)
- Synchronizes a graph. The returned graph can be accessed and modified by
several threads. You lose genericity in methods returning edge or node
because each element (graph, nodes and edges) is wrapped into a
synchronized wrapper which breaks original elements class.
- Parameters:
g
- the graph to synchronize
- Returns:
- a synchronized wrapper for g
Copyright © 2011. All Rights Reserved.