print out the id of the node and the node next to it

im fucking good :))