Add docs for dfs and bfs

Examples and docuemntation for dfs and bfs algorithms.
Fixes #1037
Merge pull request #1038 from hagberg/dfs-doc

Add docs for dfs and bfs