fgl-5.5.4.0: Martin Erwig's Functional Graph Library
Data.Graph.Inductive.Monad.STArray
Contents
Description
Static IOArray-based Graphs
Synopsis
newtype SGr s a b Source #
Constructors
Instances
Methods
emptyM :: ST s (SGr s a b) Source #
isEmptyM :: ST s (SGr s a b) -> ST s Bool Source #
matchM :: Node -> ST s (SGr s a b) -> ST s (Decomp (SGr s) a b) Source #
mkGraphM :: [LNode a] -> [LEdge b] -> ST s (SGr s a b) Source #
labNodesM :: ST s (SGr s a b) -> ST s [LNode a] Source #
matchAnyM :: ST s (SGr s a b) -> ST s (GDecomp (SGr s) a b) Source #
noNodesM :: ST s (SGr s a b) -> ST s Int Source #
nodeRangeM :: ST s (SGr s a b) -> ST s (Node, Node) Source #
labEdgesM :: ST s (SGr s a b) -> ST s [LEdge b] Source #
Please not that this instance is unsafe.
showsPrec :: Int -> SGr RealWorld a b -> ShowS #
show :: SGr RealWorld a b -> String #
showList :: [SGr RealWorld a b] -> ShowS #
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 #
defaultGraphSize :: Int Source #
emptyN :: Int -> ST s (SGr s a b) Source #
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