Giter Site home page Giter Site logo

Comments (8)

vtraag avatar vtraag commented on June 2, 2024 3

Thanks!

Yes, perhaps we can explicitly mention the duplicate element that we encountered, we will look into it.

Note that the network is assumed to be undirected. In other words, if you have the edges listed as source node -> target node, then make sure that the reverse edge is not also present. For example, if the edge 3, 4 is included, the edge 4, 3 should not be included. Could you check whether removing such duplicates resolves the issue?

from networkanalysis.

almugabo avatar almugabo commented on June 2, 2024

Thanks for the prompt reply.
Yes the "reciprocal" edges were the problems. When removed everything works fine.
Explicitly mentioning the "offending" can help, especially if the input network is large, find them can be time consuming.

from networkanalysis.

vtraag avatar vtraag commented on June 2, 2024

Good to hear it is solved!

Yes, I can understand, we'll look into improving the error message. I'll leave the issue open for now.

from networkanalysis.

Marmeladenbrot avatar Marmeladenbrot commented on June 2, 2024

Are directed networks (and therefore multiple edges for the same nodes) possible in the algorithm? Or will it stay undirected network only?

from networkanalysis.

vtraag avatar vtraag commented on June 2, 2024

Multiple edges are not possible in this implementation. However, multiple edges can simply be represented as a single weighted edge, with the weight the multiplicity of the edges (or the sum of the weights).

This implementation accepts only undirected networks. Note that for CPM the direction is not important, while for modularity directionality may play a role. The Python implementation does allow for directed networks with multiple edges though.

from networkanalysis.

FlashZdy avatar FlashZdy commented on June 2, 2024

Does nodes must be continual and start from 0 ?

from networkanalysis.

vtraag avatar vtraag commented on June 2, 2024

Yes

from networkanalysis.

vtraag avatar vtraag commented on June 2, 2024

This is now fixed in the master branch. We now provide an explicit line numbers on errors, see commit 44829f1

from networkanalysis.

Related Issues (13)

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.