Class GraphSearchUtils.LegalMagRet

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

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

    • LegalMagRet

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

    • isLegalMag

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

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