use set instead of list for node relations