fgl-5.5.0.1: Martin Erwig's Functional Graph Library

Safe HaskellSafe-Inferred

Data.Graph.Inductive.Query.SP

Synopsis

Documentation

spTree :: (Graph gr, Real b) => Node -> gr a b -> LRTree bSource

spLength :: (Graph gr, Real b) => Node -> Node -> gr a b -> bSource

sp :: (Graph gr, Real b) => Node -> Node -> gr a b -> PathSource

dijkstra :: (Graph gr, Real b) => Heap b (LPath b) -> gr a b -> LRTree bSource

Implementation of Dijkstra's shortest path algorithm