Class PcLocal

java.lang.Object
edu.cmu.tetrad.search.PcLocal
All Implemented Interfaces:
GraphSearch

public class PcLocal extends Object implements GraphSearch
Implements the PC Local algorithm.
Author:
Joseph Ramsey (this version).
  • Constructor Details

    • PcLocal

      public PcLocal(IndependenceTest independenceTest)
      Constructs a PC Local search with the given independence oracle.
    • PcLocal

      public PcLocal(IndependenceTest independenceTest, Graph graph)
  • Method Details

    • isAggressivelyPreventCycles

      public boolean isAggressivelyPreventCycles()
    • setAggressivelyPreventCycles

      public void setAggressivelyPreventCycles(boolean aggressivelyPreventCycles)
    • getIndependenceTest

      public IndependenceTest getIndependenceTest()
    • getKnowledge

      public Knowledge getKnowledge()
    • setKnowledge

      public void setKnowledge(Knowledge knowledge)
    • getElapsedTime

      public long getElapsedTime()
    • search

      public Graph search()
      Runs PC starting with a fully connected graph over all of the variables in the domain of the independence test.
      Specified by:
      search in interface GraphSearch
    • isArrowpointAllowed

      public static boolean isArrowpointAllowed(Object from, Object to, Knowledge knowledge)
      Checks if an arrowpoint is allowed by background knowledge.
    • getSepsets

      public SepsetMap getSepsets()
    • isVerbose

      public boolean isVerbose()
    • setVerbose

      public void setVerbose(boolean verbose)
    • setExternalGraph

      public void setExternalGraph(Graph externalGraph)