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