fgl-5.5.3.0: Martin Erwig's Functional Graph Library

Safe HaskellNone
LanguageHaskell98

Data.Graph.Inductive.Monad.STArray

Contents

Description

Static IOArray-based Graphs

Synopsis

Graph Representation

newtype SGr s a b Source

Constructors

SGr (GraphRep s a b) 

Instances

GraphM (ST s) (SGr s) Source 
(Show a, Show b) => Show (SGr RealWorld a b) Source

Please not that this instance is unsafe.

type GraphRep s a b = (Int, Array Node (Context' a b), STArray s Node Bool) Source

type Context' a b = Maybe (Adj b, a, Adj b) Source

type USGr s = SGr s () () Source

emptyN :: Int -> ST s (SGr s a b) Source

Utilities

removeDel :: STArray s Node Bool -> Adj b -> ST s (Adj b) Source

filter list (of successors/predecessors) through a boolean ST array representing deleted marks