Graphs algorithms.