Package edu.cmu.tetrad.search.utils
Class GraphSearchUtils.LegalMagRet
java.lang.Object
edu.cmu.tetrad.search.utils.GraphSearchUtils.LegalMagRet
- Enclosing class:
GraphSearchUtils
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 Summary
ConstructorsConstructorDescriptionLegalMagRet
(boolean legalPag, String reason) Constructs a new LegalMagRet object. -
Method Summary
Modifier and TypeMethodDescriptionReturns the reason why the graph is not a legal MAG, if not.boolean
Returns whether the graph is a legal MAG.
-
Constructor Details
-
LegalMagRet
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
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.
-