add AdjacencyListGraph.prototype.forestPrim()