The next answer, though incorrect, suggests a good strategy for testing your bijection: labelling neighbors at each node: