Groundwork for dijkstra in place, partially complete