Class Triple

java.lang.Object
edu.cmu.tetrad.graph.Triple
All Implemented Interfaces:
TetradSerializable, Serializable

public final class Triple extends Object implements TetradSerializable
Stores a triple (x, y, z) of nodes. Note that (x, y, z) = (z, y, x). Useful for marking graphs.
Author:
josephramsey, after Frank Wimberly.
See Also:
  • Constructor Details

    • Triple

      public Triple(Node x, Node y, Node z)
      Constructs a triple of nodes.
  • Method Details

    • serializableInstance

      public static Triple serializableInstance()
      Generates a simple exemplar of this class to test serialization.
    • pathString

      public static String pathString(Graph graph, Node x, Node y, Node z)
    • getX

      public Node getX()
    • getY

      public Node getY()
    • getZ

      public Node getZ()
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • alongPathIn

      public boolean alongPathIn(Graph graph)