hgraph-1.10.0.0: Tools for working on (di)graphs.
Safe HaskellSafe-Inferred
LanguageHaskell2010

HGraph.Utils

Synopsis

Documentation

mhead :: [a] -> Maybe a Source #

randomN :: (Random a, RandomGen g) => a -> a -> State g a Source #

choose :: (Eq t, Num t) => t -> [a] -> [[a]] Source #

Lists all subsets of s of size exactly k.

guessOne :: (t -> t -> Maybe a) -> (t -> t -> t) -> t -> [t] -> Maybe a Source #