Bernoulli Embeddings for Graphs