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

GHC 10.0.0.20260917 · lts/ghc-10.0.x · fc4e598 · 2026-10-11

Modulefgl-5.8.3.1Haskell98

Data.Graph.Inductive.Query.TransClos

  • 3 values
  • Packagefgl-5.8.3.1
  • Exports3
  • LanguageHaskell98
  • LicenceBSD-3-Clause
  • SourceTransClos.hs
valuetrc :: DynGraph gr => gr a b -> gr a ()
#

Finds the reflexive-transitive closure of a directed graph. Given a graph G=(V,E), its reflexive-transitive closure is the graph: G* = (V,E*) where E*={(i,j): i,j in V and either i = j or there is a path from i to j in G}

valuerc :: DynGraph gr => gr a b -> gr a ()
#

Finds the reflexive closure of a directed graph. Given a graph G=(V,E), its reflexive closure is the graph: G* = (V,Er union E) where Er = {(i,i): i in V}

valuetc :: DynGraph gr => gr a b -> gr a ()
#

Finds the transitive closure of a directed graph. Given a graph G=(V,E), its transitive closure is the graph: G* = (V,E*) where E*={(i,j): i,j in V and there is a path from i to j in G}