org.graphstream.graph.implementations
Class Graphs

java.lang.Object
  extended by org.graphstream.graph.implementations.Graphs

public class Graphs
extends Object


Constructor Summary
Graphs()
           
 
Method Summary
static Graph synchronizedGraph(Graph g)
          Synchronizes a graph.
static Graph unmutableGraph(Graph g)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Graphs

public Graphs()
Method Detail

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.