Inductive Graph Embeddings through Locality Encodings