Comments (6)
The problem seems to be caused by the edges with zero weights. For the time being you can circumvent the problem by simply removing those edges. This can be done without any problem since edges with zero weights have no effect anyway.
Nonetheless, this is a bug that should be corrected. We will provide a fix at some later time.
from networkanalysis.
In particular, the root cause of the problem is that we check whether a neighboring cluster is already added in these conditionals:
We should probably use a boolean array isClusterAdded
instead of relying on the edge weight. This is the most robust way to address this issue I think. @neesjanvaneck, what do you think?
from networkanalysis.
Ah, I see. Makes perfect sense. I didn't intend to have any edges with zero weight. I'm happy to check for that condition and remove those edges, which are meaningless. Would you like me to close this issue (as far as I'm concerned, it's already resolved)?
from networkanalysis.
No problem, I imagine that you did not check this condition prior to running the algorithm. No, let's leave the issue open, as the program shouldn't crash on this input.
from networkanalysis.
I suppose a smaller change would simply be to filter out edges with zero weight in the code that reads the edges from the file. This way, you can enforce your own precondition, and leave the downstream code unchanged. The advantage is that it would avoid adding another variable for book-keeping.
from networkanalysis.
Yes, we would probably do that as well. However, the program still should not crash, even if an edge of zero weight would somehow be included.
from networkanalysis.
Related Issues (13)
- setResolution does not set resolution for local moving algorithm
- Effect of edge weights in resulting communities
- Can't get results HOT 4
- Self-loops are not properly considered when using modularity
- eighbors array must not include duplicate values. HOT 1
- Is there a version 1.1.0 standalone jar package released? HOT 2
- Seed doesn't affect the results HOT 2
- Question about clustering results HOT 3
- Documentation Error: Output Formatting HOT 1
- error message : duplicate values while creating network HOT 8
- Warning: NetworkClustering fills the gap nodes from your input network as isolated clusters HOT 2
- Clustering with normalization methods HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from networkanalysis.