Observing the tree

what does the two values X and Y, that follow the first line in the input, signify? Also, what does it mean that ‘there is an edge between node X and node Y’?