Graphs algorithms site - explanation