Proper nearly perfect sets in graphs