restrict the sets of nodes considered for label display to the minimum -- hopefully fixing the ghost-labels bug