Bug in bfs_all for undirected graphs fixed.
bug in bfs_all for digraphs fixed.

docstrings updated appropriately.