Learning to represent shortest paths and other graph-based measures of node similarities with graph embeddings