Package edu.cmu.tetrad.search.utils
Class DagToPag
java.lang.Object
edu.cmu.tetrad.search.utils.DagToPag
Converts a DAG (Directed acyclic graph) into the PAG (partial ancestral graph) which it is in the equivalence class
 of.
- Author:
- josephramsey, peterspirtes
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionconvert()This method does the convertion of DAG to PAG.static booleanexistsInducingPathInto(Node x, Node y, Graph graph) booleanvoidsetCompleteRuleSetUsed(boolean completeRuleSetUsed) voidsetDoDiscriminatingPathRule(boolean doDiscriminatingPathRule) voidsetKnowledge(Knowledge knowledge) voidsetMaxPathLength(int maxPathLength) Sets the maximum path length for some rules in the conversion.voidsetVerbose(boolean verbose) Setws whether verbose output should be printed.
- 
Constructor Details- 
DagToPagConstructs a new FCI search for the given independence test and background knowledge.
 
- 
- 
Method Details- 
existsInducingPathInto
- 
convertThis method does the convertion of DAG to PAG.- Returns:
- Returns the converted PAG.
 
- 
getKnowledge
- 
setKnowledge
- 
isCompleteRuleSetUsedpublic boolean isCompleteRuleSetUsed()- Returns:
- true if Zhang's complete rule set should be used, false if only R1-R4 (the rule set of the original FCI) should be used. False by default.
 
- 
setCompleteRuleSetUsedpublic void setCompleteRuleSetUsed(boolean completeRuleSetUsed) - Parameters:
- completeRuleSetUsed- set to true if Zhang's complete rule set should be used, false if only R1-R4 (the rule set of the original FCI) should be used. False by default.
 
- 
setVerbosepublic void setVerbose(boolean verbose) Setws whether verbose output should be printed.- Parameters:
- verbose- True, if so.
 
- 
setMaxPathLengthpublic void setMaxPathLength(int maxPathLength) Sets the maximum path length for some rules in the conversion.- Parameters:
- maxPathLength- This length.
- See Also:
 
- 
setDoDiscriminatingPathRulepublic void setDoDiscriminatingPathRule(boolean doDiscriminatingPathRule) 
 
-