leoribeiro / struc2vec

This repository provides a reference implementation of struc2vec.
MIT License
381 stars 116 forks source link

Support for directed, weighted graphs and code cleanup #12

Open steenfatt opened 5 years ago

steenfatt commented 5 years ago

I have [see corresponding paper] ...

The changes are completely backwards compatible, i.e., any commands that you have been running previously should still work the exact same.

joewilaj commented 4 years ago

What adjustments are necessary to run on python3?

MikeB2019x commented 1 year ago

@joewilaj I got this to run in Python3. Here are the necessary changes:

That should pretty much do it. As a test run Karate Kid network. BTW it doesn't look like this repo is maintained so that's a shame.

asmuzsoy commented 2 months ago

What would need to change for this to work on undirected, weighted graphs? Or, could this be hacked by just adding two directed, weighted edges in opposite directions instead of one weighted undirected edge between two nodes?