zhiyzuo / python-modularity-maximization

Python implementation of Newman's spectral methods to maximize modularity.
MIT License
45 stars 25 forks source link

Remove log message #5

Closed rsmbyk closed 4 years ago

rsmbyk commented 5 years ago

How do I remove the log message when calling modularity_maximization.utils.get_modularity functions?

It keeps printing Calculating modularity for undirected graph every time I call this function.

zhiyzuo commented 4 years ago

this is because I put a print in the code here.

if you're using it in jupyter notebook, you could use the %%capture to get rid of all the output in the cell.

rsmbyk commented 4 years ago

Maybe you can add an option/argument to turn on/off printing of the log message.