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 Details

    • GraphFactory

      public GraphFactory()
      Create a new instance of graph.
  • Method Details

    • newInstance

      public Graph newInstance​(String id, String graphClass)
      Instantiate a new graph from the given class name.
      Returns:
      A graph instance or null if the graph class was not found.