Skip to content

Python implementation of Newman's spectral methods to maximize modularity.

License

Notifications You must be signed in to change notification settings

thelahunginjeet/python-modularity-maximization

 
 

Repository files navigation

Python implementation of Newman's spectral methods to maximize modularity.

See:

A quick start: https://zhiyzuo.github.io/python-modularity-maximization/

All the datasets in ./data comes from http://www-personal.umich.edu/~mejn/netdata/

Specifically, big_10_football_directed.gml is compiled by myself to test community detection for directed network. I combined data from http://www.sports-reference.com/cfb/conferences/big-ten/2005-schedule.html and the original football.gml to define the edge directions.

Change log:

  • 04-29-2019 (Kevin S. Brown) Edge weights are now supported, for both directed and undirected graphs.
  • 02-23-2018 Test on Python 3
  • 10-20-2017 Updated python codes to use NetworkX 2 APIs. See https://networkx.github.io/documentation/stable/release/release_2.0.html. Later in the day, I added a wrapper function to retrieve the largest eigenvalue and vector for 2x2 matrices since scipy.sparse.linalg.eigs do not work in that case.

About

Python implementation of Newman's spectral methods to maximize modularity.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 69.8%
  • Jupyter Notebook 30.2%