Copyright | (c) 2018-2019 Yann Herklotz |
---|---|
License | BSD-3 |
Maintainer | yann [at] yannherklotz [dot] com |
Stability | experimental |
Portability | POSIX |
Safe Haskell | None |
Language | Haskell2010 |
Internal helpers for generation.
Documentation
filterGr :: Graph gr => gr n e -> (Node -> Bool) -> [Node] Source #
General function which runs filter
over a graph.
only :: Graph gr => gr n e -> (gr n e -> Node -> Int) -> (gr n e -> Node -> Int) -> Node -> Bool Source #
Takes two functions that return an Int
, and compares there results to 0
and not 0 respectively. This result is returned.