Added interface for tuning the direction optimal BFS.