Class Ling.StoredGraphs

java.lang.Object
edu.cmu.tetrad.search.Ling.StoredGraphs
All Implemented Interfaces:
GraphGroup
Enclosing class:
Ling

public static class Ling.StoredGraphs extends Object implements GraphGroup
This small class is used to store graph permutations. It contains basic methods for adding and accessing graphs.

It is likely that this class will move elesewhere once the role of algorithm that produce multiple graphs is better defined.

  • Constructor Details

    • StoredGraphs

      public StoredGraphs()
  • Method Details

    • getNumGraphs

      public int getNumGraphs()
      Gets the number of graphs stored by the class.
      Specified by:
      getNumGraphs in interface GraphGroup
      Returns:
      Returns the number of graphs stored in the class
    • getGraph

      public Graph getGraph(int g)
      Description copied from interface: GraphGroup
      Gets a graph at a specific index
      Specified by:
      getGraph in interface GraphGroup
      Parameters:
      g - The index of the graph to be returned
      Returns:
      Returns a Graph
    • getData

      public DataSet getData(int d)
      Parameters:
      d - The index of the graph for which the DataSet is being returned
      Returns:
      Returns a DataSet
    • isStable

      public boolean isStable(int s)
      Parameters:
      s - The index of the graph at which to return the boolean stability information for the permutation
      Returns:
      Returns the shriknig variable value for a specific graph.
    • addGraph

      public void addGraph(Graph g)
      Gives a method for adding classes to the class.
      Specified by:
      addGraph in interface GraphGroup
      Parameters:
      g - The graph to add
    • addData

      public void addData(DataSet d)
      A method for adding graph data to the class.
      Parameters:
      d - The graph to add
    • addStable

      public void addStable(Boolean s)
      Allows for the adding of shinking information to its corresponding graph. This should be used at the same time as addGraph() if it is to be used. Otherwise, add a method to add data at a specific index.
      Parameters:
      s - The stability value to set for a graph.