HORIZON HASKELLDocslts/ghc-9.10.xc74966e2026-09-27Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · c74966e · 2026-09-27

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