Create list of node ids