Nodes, grey, white and black.
  How many before I'm done?
  Dijkstra's algorithm.