Class CompareTwoGraphs

java.lang.Object
edu.cmu.tetrad.algcomparison.comparegraphs.CompareTwoGraphs

public class CompareTwoGraphs extends Object
  • Constructor Details

    • CompareTwoGraphs

      public CompareTwoGraphs(Graph target, Graph reference)
  • Method Details

    • setCompareToType

      public void setCompareToType(CompareTwoGraphs.CompareToType compareTo)
    • setComparisontype

      public void setComparisontype(CompareTwoGraphs.ComparisonType comparisontype)
    • addStatistic

      public void addStatistic(Statistic statistic)
    • getComparisonString

      public String getComparisonString()
      Returns a string comparing 'target' to 'reference' using the given comparison method. If type comparison method is 'stats list', a list of comparison statistics will be printed out using the stats added via the 'addStatistic' method. These stats will not be used for the other comparison methods. The type of graph compared to (DAG, CPDAG, PAG) can be set using the 'setCompareTotype' method.
      Returns:
      This string, which can be printed.
      See Also: