Learning to Compare Nodes in Branch and Bound with Graph Neural Networks