add AdjacencyListGraph.prototype.criticalPath()