fgl

modify edge label in Haskell package fgl

Hi, I've wrote the following code to increment the label of a given edge of a graph with FGL package, if the edge does not exist, it is created before being incremented : import Data.Graph.Inductive incrementEdge :: Edge -> Gr a Int -> Gr a Int incrementEdge edge g = gmap (increment edge) g increment :: Edge -> Context a Int -> ...