adjust node numbers: all nodes include own (+1), neigboring nodes exclude own (-1)