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 SummaryConstructors
- 
Method SummaryModifier 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- 
serializableInstanceGenerates a simple exemplar of this class to test serialization.- Returns:
- a Tripleobject
 
- 
pathStringpathString. 
- 
getXGetter for the field x.- Returns:
- a Nodeobject
 
- 
getYGetter for the field y.- Returns:
- a Nodeobject
 
- 
getZGetter for the field z.- Returns:
- a Nodeobject
 
- 
hashCodepublic int hashCode()hashCode. 
- 
equals
- 
toStringtoString. 
- 
alongPathInalongPathIn. - Parameters:
- graph- a- Graphobject
- Returns:
- a boolean
 
 
-