Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting null pointer error when trying to calculate modularity #1419

Closed
demolaiot opened this issue Mar 8, 2016 · 7 comments
Closed

Getting null pointer error when trying to calculate modularity #1419

demolaiot opened this issue Mar 8, 2016 · 7 comments
Assignees
Milestone

Comments

@demolaiot
Copy link

getting the following error

java.lang.NullPointerException
at org.gephi.statistics.plugin.Modularity$CommunityStructure.removeNodeFrom(Modularity.java:289)
at org.gephi.statistics.plugin.Modularity$CommunityStructure.moveNodeTo(Modularity.java:342)
at org.gephi.statistics.plugin.Modularity$CommunityStructure.access$300(Modularity.java:127)
at org.gephi.statistics.plugin.Modularity.computeModularity(Modularity.java:507)
at org.gephi.statistics.plugin.Modularity.execute(Modularity.java:467)
at org.gephi.statistics.plugin.Modularity.execute(Modularity.java:456)
at org.gephi.statistics.StatisticsControllerImpl.execute(StatisticsControllerImpl.java:162)
at org.gephi.statistics.StatisticsControllerImpl$3.run(StatisticsControllerImpl.java:149)
[catch] at org.gephi.utils.longtask.api.LongTaskExecutor$RunningLongTask.run(LongTaskExecutor.java:274)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)

@eduramiba
Copy link
Member

This occurrs when there are parallel (duplicated) edges in the network, which is now possible in Gephi since 0.9.0

@naco-siren
Copy link

@eduramiba Version 0.9.1 still doesn't work.
Any existence of a directed edge that "duplicates" leads to the malfunction of Modularity calculation.

@eduramiba
Copy link
Member

Hi @naco-siren this fix is not available in 0.9.1 yet. You can try it in latest 0.9.2 nightly build https://github.com/gephi/gephi#nightly-builds

@naco-siren
Copy link

@eduramiba Love you >_<

@darkoc
Copy link

darkoc commented Apr 7, 2016

I get the same error in 0.9.1 when using the tookit (from a Java program, not the UI).
The graph is directed so the edges are not really duplicates.
Interestingly enough, when computing the modularity through the UI in Gephi 0.9.1 on the same graph it works ?!

@darkoc
Copy link

darkoc commented Apr 7, 2016

The modularity doesn't work in tookit 0.9.2-SNAPSHOT either. It is getting stuck in an infinite while loop.

@eduramiba
Copy link
Member

Hi, the lastest toolkit nightly build is prior to this fix. I just started a new build to refresh it. https://travis-ci.org/gephi/gephi-toolkit/builds/109715048

averissimo pushed a commit to averissimo/gephi that referenced this issue Apr 7, 2016
…dularity

Fix gephi#713 Modularity Calculation Throws Exception On Empty Graph
averissimo pushed a commit to averissimo/gephi that referenced this issue Apr 7, 2016
averissimo pushed a commit to averissimo/gephi that referenced this issue Apr 7, 2016
…dularity

Fix gephi#713 Modularity Calculation Throws Exception On Empty Graph
averissimo pushed a commit to averissimo/gephi that referenced this issue Apr 7, 2016
eduramiba added a commit that referenced this issue Jun 23, 2016
Gephi 0.9 bug saving projects that are in Geo Layout? #1373

Modularity Calculation Throws Exception On Empty Graph #713
Getting null pointer error when trying to calculate modularity #1419

No Suitable driver found for jdbc:mysql:// #1317
No Suitable Driver Found for jdbc:postgresql #1466
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants