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

Modulecabal-install-solver-3.12.1.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