Added node accessor to Graph.
Added BFS version with stop condition predicate.