Code Monkey home page Code Monkey logo

Comments (2)

vtraag avatar vtraag commented on May 26, 2024

Hi @maximiliano02, thanks for offering such an improvement! Indeed most of the methodology to create such normalizations are already present in the codebase, we simply have not yet exposed them. So, at the moment only non-normalized weights are used. Feel free to create a PR to contribute your improvement.

Regarding some of the technical details:

  1. Please note that -w is already used to indicate the network is weighted. We suggest to use -n [NORMALIZATION] to indicate the weight normalization method, where NORMALIZATION can be None (which should be the default), AssociationStrength or Fractionalization
  2. Please do not modify the readEdgeList method, but rather, call the methods createNormalizedNetworkUsingAssociationStrength or createNormalizedNetworkUsingFractionalization once the network is loaded here:
    Network network = readEdgeList(edgeListFilename, useModularity, weightedEdges, sortedEdgeList);
  3. See previous point.

If you are not yet familiar with contributing a PR, the process is, in essence, relatively simple.

  1. Create a fork
  2. Make a new branch, starting from this master branch.
  3. Push your changes to the new branch in your own fork.
  4. Create a Pull Request.

For more information about this, please refer to this explanation from GitHub.

from networkanalysis.

neesjanvaneck avatar neesjanvaneck commented on May 26, 2024

Thanks for your suggestion! The normalization feature is now available in the master branch. See #9.

from networkanalysis.

Related Issues (12)

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.