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

Modularity Calculation Throws Exception On Empty Graph #713

Closed
thallium205 opened this issue Dec 30, 2012 · 1 comment
Closed

Modularity Calculation Throws Exception On Empty Graph #713

thallium205 opened this issue Dec 30, 2012 · 1 comment
Assignees
Milestone

Comments

@thallium205
Copy link

When calculating an empty graph, the modularity calculation throw this error:

java.lang.ArithmeticException: / by zero
at org.gephi.statistics.plugin.Modularity.execute(Modularity.java:477)
at org.gephi.statistics.plugin.Modularity.execute(Modularity.java:454)
at bitcoinvisualizer.GraphExporter.Export(GraphExporter.java:529)
at bitcoinvisualizer.GraphExporter.ExportBetweenTwoDates(GraphExporter.java:188)
at bitcoinvisualizer.GraphExporter.ExportOwnersAndDaysToMysql(GraphExporter.java:165)
at bitcoinvisualizer.Main.main(Main.java:83)

Modularity was invoked using this method:

// Modularity
LOG.info("Begin Modularity...");
Modularity modularity = new Modularity();
modularity.setRandom(true);
modularity.setUseWeight(true);
modularity.setResolution(1.0);
modularity.execute(graphModel, attributeModel);
LOG.info("Modularity Complete.");
@mbastian
Copy link
Member

This is still happening in Gephi 0.9.1.

@eduramiba eduramiba self-assigned this Apr 1, 2016
@eduramiba eduramiba added this to the 0.9.2 milestone Apr 1, 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
…dularity

Fix gephi#713 Modularity Calculation Throws Exception On Empty Graph
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

3 participants