Class Tetrad

java.lang.Object
edu.cmu.tetrad.search.utils.Tetrad
All Implemented Interfaces:
TetradSerializable, Serializable

public class Tetrad extends Object implements TetradSerializable
Represents an ordered sextad of nodes.
Version:
$Id: $Id
Author:
josephramsey
See Also:
  • Constructor Details

    • Tetrad

      public Tetrad(int i, int j, int k, int l)
      Constructor.
      Parameters:
      i - a int
      j - a int
      k - a int
      l - a int
  • Method Details

    • serializableInstance

      public static Tetrad serializableInstance()
      Generates a simple exemplar of this class to test serialization.
      Returns:
      a Tetrad object
    • getI

      public int getI()

      Getter for the field i.

      Returns:
      a int
    • getJ

      public int getJ()

      Getter for the field j.

      Returns:
      a int
    • getK

      public int getK()

      Getter for the field k.

      Returns:
      a int
    • getL

      public int getL()

      Getter for the field l.

      Returns:
      a int
    • hashCode

      public int hashCode()

      hashCode.

      Overrides:
      hashCode in class Object
      Returns:
      a int
    • equals

      public boolean equals(Object o)

      Returns a judgment of equality with another Sextad instance.

      Overrides:
      equals in class Object
    • toString

      public String toString()

      toString.

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

      public List<Integer> getNodes()
      Returns the list of nodes.
      Returns:
      This list.