haskell / fgl

A Functional Graph Library for Haskell
http://hackage.haskell.org/package/fgl
Other
185 stars 54 forks source link

allow pre' for bfs #52

Closed ciez closed 3 years ago

ciez commented 8 years ago

xdfsWith allows to specify suc' or pre' when performing the search.

bfs is currently only possible with hard coded suc'

let's add an arg to bfsnInternal which allows to choose suc' or pre' with bfs? let's add xbfsnWith, too.

ivan-m commented 8 years ago

Pull requests accepted :)

ciez commented 4 years ago

the same code as in Sep 2016

reformatted it, added documentation to all the related functions and their key params