microsoft / topologic

A python library for intelligently building networks and network embeddings, and for analyzing connected data.
https://topologic.readthedocs.io
MIT License
27 stars 8 forks source link

Use weighted degree for diagonal augmentation #34

Closed nicaurvi closed 4 years ago

nicaurvi commented 4 years ago

Formally we used just the degree when performing diagonal augmentation / self loop augmentation. This change makes it so that we use the weighted degree instead.

For directed graphs, we use the average between weighted in degree and weighted out degree.

Closes #33