bctpy
bctpy copied to clipboard
B symmetrization inside if statement in community_louvain
Hello, I was using your community_louvain algorithm to cluster a directed network, but I noticed that you have the symmetrization of the B matrix inside an else statement such that the symmetrization does not usually occur. I was looking at the MATLAB BCT version of the code and I believe that there, the B matrix is always symmetrized, and is not inside any loops or if statements. I indeed resulted in two slightly different clusterings when using MATLAB vs. using your algorithm- can you shed light on if this is a bug in your code or in the BCT code, possibly? Thank you in advance!