Coder Social home page Coder Social logo

Comments (3)

szhorvat avatar szhorvat commented on August 15, 2024

@vtraag, does this affect the implementation in igraph as well? I'm guessing yes?

from leidenalg.

vtraag avatar vtraag commented on August 15, 2024

Thanks for the report here @wolfram77!

The problem here is that I want to ensure that the diff_move() function is consistent with the difference in the quality() function after the exact same move. Indeed, for the ModularityVertexPartition, the diff_move() is scaled (i.e. with $1/m$ with $m$ the number of edges) in order to be consistent with the quality() function.

What I'll probably do is separate the diff_move function into two separate parts, one diff_move_raw, which can then be used in the optimisation procedure, and one diff_move which is the scaled version of diff_move_raw used for consistency checks.

@vtraag, does this affect the implementation in igraph as well? I'm guessing yes?

No, this does not affect the igraph implementation, it always uses an unscaled version of the difference (i.e. it doesn't divide by $m$).

from leidenalg.

wolfram77 avatar wolfram77 commented on August 15, 2024

Hello @vtraag I was thinking if it would be easier to recommend users to use RBConfigurationVertexPartition instead of ModularityVertexPartition for very large graphs - until you see enough requests for it to directly work with ModularityVertexPartition. If so, we can update the documentation and close this issue immediately.

from leidenalg.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.