Class GraphSearchUtils.LegalPagRet

java.lang.Object
edu.cmu.tetrad.search.utils.GraphSearchUtils.LegalPagRet
Enclosing class:
GraphSearchUtils

public static class GraphSearchUtils.LegalPagRet extends Object
Stores a result for checking whether a graph is a legal PAG--(a) whether it is (a boolean), and (b) the reason why it is not, if it is not (a String).
  • Constructor Details

    • LegalPagRet

      public LegalPagRet(boolean legalPag, String reason)
      Constructs a new LegalPagRet object.
      Parameters:
      legalPag - Whether the graph is a legal PAG.
      reason - The reason why the graph is not a legal PAG, if not.
  • Method Details

    • isLegalPag

      public boolean isLegalPag()
      Returns whether the graph is a legal PAG.
      Returns:
      Whether the graph is a legal PAG.
    • getReason

      public String getReason()
      Returns the reason why the graph is not a legal PAG, if not.
      Returns:
      The reason why the graph is not a legal PAG, if not.