CurryInfo: graph-inductive-3.0.0 / Data.GraphInductive.match

definition: Info
 
match     :: Node -> Graph a b -> Decomp a b
match v (Gr g) = 
  maybe 
   (Nothing,Gr g) 
   (\ (g',(_,(p,l,s))) ->
             let s'   = filter ((/=v) . snd) s
                 p'   = filter ((/=v) . snd) p
                 g1   = updAdj g' s' (clearPred v)
                 g2   = updAdj g1 p' (clearSucc v)
              in (Just (p',v,l,s),Gr g2))
   (maybe Nothing (\x -> Just (delete v g, (v,x))) (Data.Map.lookup v g))
demand: Info
 argument 2
deterministic: Info
 deterministic operation
documentation: Info
 
match is the complement side of (:&), decomposing a 'Graph' into the 
'MContext' found for the given node and the remaining 'Graph'.
failfree: Info
 (_, _)
indeterministic: Info
 referentially transparent operation
infix: Info
 no fixity defined
iotype: Info
 {(_,{Gr}) |-> _}
name: Info
 match
precedence: Info
 no precedence defined
result-values: Info
 _
signature: Info
 Prelude.Int -> Graph a b
-> (Prelude.Maybe ([(b, Prelude.Int)], Prelude.Int, a, [(b, Prelude.Int)]), Graph a b)
solution-complete: Info
 operation might suspend on free variables
terminating: Info
 possibly non-terminating
totally-defined: Info
 possibly non-reducible on same data term