Package edu.cmu.tetrad.graph
Class Triple
java.lang.Object
edu.cmu.tetrad.graph.Triple
- All Implemented Interfaces:
TetradSerializable,Serializable
Stores a triple (x, y, z) of nodes. Note that (x, y, z) = (z, y, x). Useful for marking graphs.
- Version:
- $Id: $Id
- Author:
- josephramsey, after Frank Wimberly.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanalongPathIn(Graph graph) alongPathIn.booleangetX()Getter for the fieldx.getY()Getter for the fieldy.getZ()Getter for the fieldz.inthashCode()hashCode.static StringpathString(Graph graph, Node x, Node y, Node z) pathString.static TripleGenerates a simple exemplar of this class to test serialization.toString()toString.
-
Constructor Details
-
Method Details
-
serializableInstance
Generates a simple exemplar of this class to test serialization.- Returns:
- a
Tripleobject
-
pathString
pathString.
-
getX
Getter for the field
x.- Returns:
- a
Nodeobject
-
getY
Getter for the field
y.- Returns:
- a
Nodeobject
-
getZ
Getter for the field
z.- Returns:
- a
Nodeobject
-
hashCode
public int hashCode()hashCode.
-
equals
-
toString
toString.
-
alongPathIn
alongPathIn.
- Parameters:
graph- aGraphobject- Returns:
- a boolean
-