Package edu.cmu.tetrad.graph
Class IndependenceFact
java.lang.Object
edu.cmu.tetrad.graph.IndependenceFact
- All Implemented Interfaces:
TetradSerializable,Serializable,Comparable<IndependenceFact>
public final class IndependenceFact
extends Object
implements TetradSerializable, Comparable<IndependenceFact>
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
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionIndependenceFact(Node x, Node y, Node... z) Constructor for IndependenceFact.IndependenceFact(Node x, Node y, Set<Node> z) Constructor for IndependenceFact. -
Method Summary
Modifier and TypeMethodDescriptionintcompareTo(IndependenceFact other) booleangetX()Getter for the fieldx.getY()Getter for the fieldy.getZ()getZ.inthashCode()static IndependenceFactGenerates 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
IndependenceFactobject
-
getX
Getter for the field
x.- Returns:
- a
Nodeobject
-
getY
Getter for the field
y.- Returns:
- a
Nodeobject
-
getZ
getZ.
- Returns:
- a
Setobject
-
equals
-
hashCode
public int hashCode() -
compareTo
- Specified by:
compareToin interfaceComparable<IndependenceFact>
-
toString
toString.
-