Some graph algorithms.