deepwalk icon indicating copy to clipboard operation
deepwalk copied to clipboard

Make deepwalk usable from within python?

Open apwest opened this issue 3 years ago • 0 comments

I'm using deepwalk to generate embeddings for thousands of graphs, which I then process with python scripts. It would be great to use deepwalk as a python module instead of having to use it as a command line tool (which is also great, just not for this scenario).

I currently wrap the command using subprocess.call(), open the resulting out-file, read in the embeddings data, and carry out my processing. It would also be nice if the python module made writing the embeddings to a file optional, and allow returning the embeddings data as a python object (e.g. list, dictionary, etc.).

apwest avatar Jul 30 '21 19:07 apwest