HORIZON HASKELLDocslts/ghc-10.0.x8fef28d2026-11-02Search packagesCtrl K
Theme: |

GHC 10.0.0.20260917 · lts/ghc-10.0.x · 8fef28d · 2026-11-02

Modulefgl-5.8.3.1Haskell98

Data.Graph.Inductive.NodeMap

Utility methods to automatically generate and keep track of a mapping between node labels and Nodes.

Contents
  1. Functional Construction
  2. Map Construction
  3. Graph Construction
  4. Monadic Construction
  5. Map Construction
  6. Graph Construction
  7. Map inspection
Synopsis
  • Packagefgl-5.8.3.1
  • Exports39
  • LanguageHaskell98
  • LicenceBSD-3-Clause
  • SourceNodeMap.hs

Functional Construction

datadata NodeMap a
#
Instances4Eq, Read, Show, NFData
  • Eq a => Eq (NodeMap a)Defined in fgl-5.8.3.1 · Data.Graph.Inductive.NodeMap
  • (Ord a, Read a) => Read (NodeMap a)Defined in fgl-5.8.3.1 · Data.Graph.Inductive.NodeMap
  • Show a => Show (NodeMap a)Defined in fgl-5.8.3.1 · Data.Graph.Inductive.NodeMap
  • NFData a => NFData (NodeMap a)Defined in fgl-5.8.3.1 · Data.Graph.Inductive.NodeMap

Map Construction

Graph Construction

These functions mirror the construction and destruction functions in Data.Graph.Inductive.Graph, but use the given NodeMap to look up the appropriate Nodes. Note that the insMapNode family of functions will create new nodes as needed, but the other functions will not.

Monadic Construction

The following mirror the functional construction functions, but handle passing NodeMaps and Graphs behind the scenes.

Map Construction

Graph Construction

Map inspection