Modulefgl-5.8.3.1Haskell98
Data.Graph.Inductive.Query.Monad
Monadic Graph Algorithms
Contents
Synopsis
- value mapFst
- value mapSnd
- value ><
- value orP
- newtype GT
- value apply
- value apply'
- value applyWith
- value applyWith'
- value runGT
- value condMGT'
- value recMGT'
- value condMGT
- value recMGT
- value getNode
- value getContext
- value getNodes'
- value getNodes
- value sucGT
- value sucM
- value graphRec
- value graphRec'
- value graphUFold
- value graphNodesM0
- value graphNodesM
- value graphNodes
- value graphFilterM
- value graphFilter
- value dfsGT
- value dfsM
- value dfsM'
- value dffM
- value graphDff
- value graphDff'
- Packagefgl-5.8.3.1
- Exports34
- LanguageHaskell98
- LicenceBSD-3-Clause
- SourceMonad.hs
Additional Graph Utilities
Graph Transformer Monad
Constructors
MGT (m g -> m (a, g))
Graph Computations Based on Graph Monads
Monadic Graph Accessing Functions
Derived Graph Recursion Operators
encapsulates a simple recursion schema on graphs
Examples: Graph Algorithms as Instances of Recursion Operators
Instances of graphRec
Example: Monadic DFS Algorithm(s)
Monadic graph algorithms are defined in two steps:
define the (possibly parameterized) graph transformer (e.g., dfsGT)
run the graph transformer (applied to arguments) (e.g., dfsM)
depth-first search yielding number of nodes
depth-first search yielding dfs forest