Add enterEdge to Bfs and Dfs.

This function notifies the client about the fact that an edge is
reached for the first time.
Merge pull request #1 from scolobb/add-enterEdge

Add enterEdge to Bfs and Dfs.