Package edu.cmu.tetrad.data
Class KnowledgeEdge
java.lang.Object
edu.cmu.tetrad.data.KnowledgeEdge
- All Implemented Interfaces:
- TetradSerializable,- Serializable
Implements a knowledge edge X-->Y as a simple ordered pair of strings.
- Version:
- $Id: $Id
- Author:
- josephramsey
- See Also:
- 
Constructor SummaryConstructorsConstructorDescriptionKnowledgeEdge(String from, String to) Constructs a knowledge edge for from-->to.
- 
Method SummaryModifier and TypeMethodDescriptionbooleangetFrom()Getter for the fieldfrom.getTo()Getter for the fieldto.inthashCode()hashCode.static KnowledgeEdgeGenerates 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 KnowledgeEdgeobject
 
- 
getFromGetter for the field from.- Returns:
- the tail node of the edge.
 
- 
getToGetter for the field to.- Returns:
- the head node of the edge.
 
- 
equalsReteurns true if (from1, to1) == (from2, to2). 
- 
hashCodepublic int hashCode()hashCode. 
- 
toStringtoString. 
 
-