Permalink
Browse files

fix bug #767

  • Loading branch information...
1 parent 70c4f5f commit 240f4a5ccf0357628fcca0a3beb53692e6ba9e16 @sheymann sheymann committed Apr 2, 2013
View
2 modules/StatisticsPlugin/src/main/java/org/gephi/statistics/plugin/Degree.java
@@ -172,7 +172,7 @@ public void execute(HierarchicalGraph graph, AttributeModel attributeModel) {
Progress.progress(progress, i);
}
- avgDegree /= (isDirected) ? 2 * graph.getNodeCount() : graph.getNodeCount();
+ avgDegree /= graph.getNodeCount();
graph.getAttributes().setValue(avgDegreeCol.getIndex(), avgDegree);
graph.readUnlockAll();

0 comments on commit 240f4a5

Please sign in to comment.