Class SingleGraph

java.lang.Object
edu.cmu.tetrad.algcomparison.graph.SingleGraph
All Implemented Interfaces:
RandomGraph, TetradSerializable, Serializable

public class SingleGraph extends Object implements RandomGraph
Stores a single graph for use in simulations, etc.
Author:
josephramsey
See Also:
  • Constructor Details

    • SingleGraph

      public SingleGraph(Graph graph)
  • Method Details

    • createGraph

      public Graph createGraph(Parameters parameters)
      Specified by:
      createGraph in interface RandomGraph
      Parameters:
      parameters - Whatever parameters are need for the given graph. See getParameters().
      Returns:
      Returns a random graph using the given parameters.
    • getDescription

      public String getDescription()
      Description copied from interface: RandomGraph
      Returns a short, one-line description of this graph type. This will be printed in the report.
      Specified by:
      getDescription in interface RandomGraph
      Returns:
      This description.
    • getParameters

      public List<String> getParameters()
      Description copied from interface: RandomGraph
      Returns the parameters that this graph uses.
      Specified by:
      getParameters in interface RandomGraph
      Returns:
      A list of String names of parameters.