nodes at dist, get all parent nodes