Class FciOrientDijkstra.DijkstraEdge

java.lang.Object
edu.cmu.tetrad.search.FciOrientDijkstra.DijkstraEdge
Enclosing class:
FciOrientDijkstra

public static class FciOrientDijkstra.DijkstraEdge extends Object
Represents a node in Dijkstra's algorithm. The distance of the nodes from the start is stored in the distance field.
  • Constructor Details

    • DijkstraEdge

      public DijkstraEdge(Node y, int weight)
      Creates a new DijkstraEdge.
      Parameters:
      y - The node.
      weight - The weight of the edge.
  • Method Details

    • gety

      public Node gety()
      Returns the node.
      Returns:
      The node.
    • getWeight

      public int getWeight()
      Returns the weight of the edge.
      Returns:
      The weight of the edge.
    • setWeight

      public void setWeight(int weight)
      Sets the weight of the edge.
      Parameters:
      weight - The weight of the edge.
    • toString

      public String toString()
      Returns a string representation of the DijkstraEdge.
      Overrides:
      toString in class Object
      Returns:
      A string representation of the DijkstraEdge.