[greedy] stop when no unvisited demand nodes left