Changed nearest_node calc to graph DB with man_alg

  TODO: remove old code