A small library for depth-first search and related algorithms.