Class ModelGenerator

java.lang.Object
edu.cmu.tetrad.bayes.ModelGenerator

public final class ModelGenerator extends Object
Provides static methods for generating variants of an input graph. For example, the first method generates all 1 step modifications of the graph.
Author:
Frank Wimberly
  • Constructor Details

    • ModelGenerator

      public ModelGenerator()
  • Method Details

    • generate

      public static List<Graph> generate(Graph graph)
      This method takes an acyclic graph as input and returns a list of graphs each of which is a modification of the original graph with either an edge deleted, added or reversed. Edges are not added or reversed if a cycle would result.