Skip to main content

dijkstra

Function dijkstra 

Source
pub fn dijkstra(
    view: &GraphView,
    source: NodeId,
    target: NodeId,
) -> Option<PathResult>
Expand description

Dijkstra’s Algorithm (Weighted Shortest Path)

Uses edge weights from GraphView if available, otherwise assumes 1.0.