Class GraphWithParameters

java.lang.Object
edu.cmu.tetrad.search.GraphWithParameters

public class GraphWithParameters extends Object
Dag plus edge weights. Later include distributions for the error terms
  • Constructor Details

    • GraphWithParameters

      public GraphWithParameters(SemIm semIm, Graph trueCPDAG)
    • GraphWithParameters

      public GraphWithParameters(Graph graph)
    • GraphWithParameters

      public GraphWithParameters(DataSet dataSet)
  • Method Details

    • addEdge

      public void addEdge(Node node1, Node node2, double weight)
    • addEdge

      public void addEdge(String nodeName1, String nodeName2, double weight)
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • regress

      public static GraphWithParameters regress(DataSet dataSet, Graph graph)
      creates a CPDAGWithParameters by running a regression, given a graph and data
    • getGraphMatrix

      public DataSet getGraphMatrix()
      Returns:
      the B matrix corresponding to the graph we do the reverse of Shimizu2006Search.makeDagWithParms()
    • getCycles

      public List<List<Integer>> getCycles()
    • getGraph

      public Graph getGraph()
    • getWeightHash

      public HashMap<Edge,Double> getWeightHash()