Imported from https://github.com/robertomaldonado/GraphEmbeddings