fix find-roots to exclude isolated nodes