Design and implementation of graph algorithms.