HORIZON HASKELLDocslts/ghc-9.14.x45dd5372026-10-11Search names, modules, packages, or :: a typeCtrl K

GHC 9.14.1 · lts/ghc-9.14.x · 45dd537 · 2026-10-11

Modulecabal-install-solver-3.16.0.0Haskell2010

Distribution.Solver.Modular.LabeledGraph

Wrapper around Data.Graph with support for edge labels

  • 2 types
  • 8 values

Graphs

2 declarations
typetype Vertex = Int
#

Abstract representation of vertices.

Building graphs

valuegraphFromEdges
  1. :: Ord key
  2. => [(node, key, [(edge, key)])]
  3. -> (Graph edge, Vertex -> (node, key, [(edge, key)]), key -> Maybe Vertex)
#

Construct an edge-labeled graph

This is a simple adaptation of the definition in Data.Graph

Graph properties

Operations on the underlying unlabeled graph