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.
Version:
$Id: $Id
Author:
Frank Wimberly
  • Method Summary

    Modifier and Type
    Method
    Description
    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.

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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.
      Parameters:
      graph - a Graph object
      Returns:
      a List object