Package edu.cmu.tetrad.search
Class FciOrientDijkstra.DijkstraEdge
java.lang.Object
edu.cmu.tetrad.search.FciOrientDijkstra.DijkstraEdge
- Enclosing class:
FciOrientDijkstra
Represents a node in Dijkstra's algorithm. The distance of the nodes from the start is stored in the distance
field.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
DijkstraEdge
Creates a new DijkstraEdge.- Parameters:
y
- The node.weight
- The weight of the edge.
-
-
Method Details
-
gety
-
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
-