Python code used in the post on breadth-first and depth-first graph search.