Contrastive Network Representation Learning