Class NodePair

java.lang.Object
edu.cmu.tetrad.graph.NodePair

public class NodePair extends Object
An unordered pair of nodes.
Version:
$Id: $Id
Author:
Tyler Gibson
  • Constructor Details

    • NodePair

      public NodePair(Node first, Node second)

      Constructor for NodePair.

      Parameters:
      first - a Node object
      second - a Node object
  • Method Details

    • getFirst

      public Node getFirst()

      Getter for the field first.

      Returns:
      a Node object
    • getSecond

      public Node getSecond()

      Getter for the field second.

      Returns:
      a Node object
    • hashCode

      public int hashCode()

      hashCode.

      Overrides:
      hashCode in class Object
      Returns:
      a int
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • toString

      public String toString()

      toString.

      Overrides:
      toString in class Object
      Returns:
      a String object