changed unionFindWatersheds(Graph) to use local rather than global neighbor ID