Class PossibleMConnectingPath

java.lang.Object
edu.cmu.tetrad.search.utils.PossibleMConnectingPath

public class PossibleMConnectingPath extends Object
Finds possible d-connecting undirectedPaths for the IonSearch.

Not thread safe.

Version:
$Id: $Id
Author:
Tyler Gibson
  • Method Details

    • findMConnectingPaths

      public static List<PossibleMConnectingPath> findMConnectingPaths(Graph pag, Node x, Node y, Collection<Node> z)
      Finds all possible D-connection undirectedPaths as sub-graphs of the pag given at construction time from x to y given z.
      Parameters:
      pag - a Graph object
      x - a Node object
      y - a Node object
      z - a Collection object
      Returns:
      a List object
    • findMConnectingPathsOfLength

      public static List<PossibleMConnectingPath> findMConnectingPathsOfLength(Graph pag, Node x, Node y, Collection<Node> z, Integer length)
      Finds all possible D-connection undirectedPaths as sub-graphs of the pag given at construction time from x to y given z for a particular path length.
      Parameters:
      pag - a Graph object
      x - a Node object
      y - a Node object
      z - a Collection object
      length - a Integer object
      Returns:
      a List object
    • getPag

      public Graph getPag()

      Getter for the field pag.

      Returns:
      a Graph object
    • getConditions

      public Set<Node> getConditions()

      Getter for the field conditions.

      Returns:
      a Set object
    • getPath

      public List<Node> getPath()

      Getter for the field path.

      Returns:
      a List object
    • toString

      public String toString()

      toString.

      Overrides:
      toString in class Object
      Returns:
      a String object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object