This is the Algorithm::Functional::BFS module for Perl. It provides a function-oriented interface to breadth-first searching of cyclic and acyclic graphs. It does not support edge or vertex weighting.
This module is licensed under the MIT license. See the README file in the module directory for more information.