Prim: accepts starting vertex, return AdjacencyGraph.