Remove picking up active nodes (because we hold active nodes only)
Rename type variable
Factor out dijkstra module