Commit c55fd312 authored by sbalev's avatar sbalev

Changed getAttribute to getNumber because autobuild didn't work.

Although it compiles on my machine :)
parent 9f949bc0
......@@ -363,7 +363,7 @@ public class PageRank implements DynamicAlgorithm, ElementSink {
normDiff = 0;
for (int i = 0; i < graph.getNodeCount(); i++) {
Node node = graph.getNode(i);
double currentRank = node.getAttribute(rankAttribute);
double currentRank = node.getNumber(rankAttribute);
double newRank = newRanks.get(i) + danglingRank;
normDiff += Math.abs(newRank - currentRank);
node.addAttribute(rankAttribute, newRank);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment