Prim's and Dijkstra's implemented, although the code could stand to be cleaned up a little.