Some graphs algorithms.