Lexicographic breadth-first search

From Wikipedia, the free encyclopedia