Find the next node in binary tree
Node for tree and graph