Breadth, shortest, depth first graph search.