HORIZON HASKELLDocslts/ghc-9.10.x248f8f02026-10-05Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · 248f8f0 · 2026-10-05

Modulefgl-5.8.2.0Haskell98

Data.Graph.Inductive.Query.GVD

Graph Voronoi Diagram

These functions can be used to create a shortest path forest where the roots are specified.

  • 2 types
  • 6 values
  • Packagefgl-5.8.2.0
  • Exports8
  • LanguageHaskell98
  • LicenceBSD-3-Clause
  • SourceGVD.hs
typetype Voronoi a = LRTree a
#

Representation of a shortest path forest.

valuegvdIn :: (DynGraph gr, Real b) => [Node] -> gr a b -> Voronoi b
#

Produce a shortest path forest (the roots of which are those nodes specified) from nodes in the graph to one of the root nodes (if possible).

valuegvdOut :: (Graph gr, Real b) => [Node] -> gr a b -> Voronoi b
#

Produce a shortest path forest (the roots of which are those nodes specified) from nodes in the graph from one of the root nodes (if possible).

valuevoronoiSet :: Node -> Voronoi b -> [Node]
#

Return the nodes reachable to/from (depending on how the Voronoi was constructed) from the specified root node (if the specified node is not one of the root nodes of the shortest path forest, an empty list will be returned).