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 TypeMethodDescriptionboolean
alongPathIn
(Graph graph) alongPathIn.boolean
getX()
Getter for the fieldx
.getY()
Getter for the fieldy
.getZ()
Getter for the fieldz
.int
hashCode()
hashCode.static String
pathString
(Graph graph, Node x, Node y, Node z) pathString.static Triple
Generates 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
Triple
object
-
pathString
pathString.
-
getX
Getter for the field
x
.- Returns:
- a
Node
object
-
getY
Getter for the field
y
.- Returns:
- a
Node
object
-
getZ
Getter for the field
z
.- Returns:
- a
Node
object
-
hashCode
public int hashCode()hashCode.
-
equals
-
toString
toString.
-
alongPathIn
alongPathIn.
- Parameters:
graph
- aGraph
object- Returns:
- a boolean
-