Package org.graphstream.graph
Class GraphFactory
java.lang.Object
org.graphstream.graph.GraphFactory
public class GraphFactory extends Object
An interface aimed at dynamically creating graph objects based on a class
name.
- Since:
- september 2007
-
Constructor Summary
Constructors Constructor Description GraphFactory()Create a new instance of graph. -
Method Summary
Modifier and Type Method Description GraphnewInstance(String id, String graphClass)Instantiate a new graph from the given class name.
-
Constructor Details
-
GraphFactory
public GraphFactory()Create a new instance of graph.
-
-
Method Details
-
newInstance
Instantiate a new graph from the given class name.- Returns:
- A graph instance or null if the graph class was not found.
-