We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 409c721 commit a7b52d6Copy full SHA for a7b52d6
1 file changed
propinquity/src/main/java/pdgs/utils/Utils.java
@@ -59,15 +59,15 @@ public static void FractionWithTotalPropinquity(Graph graph) {
59
60
int maxPropSum = 0;
61
for (Node node : nodes) {
62
- PropinquityMap node0pm = node.getAttribute("pm");
63
- Set<Integer> node0Nr = node.getAttribute("Nr");
+ PropinquityMap pm = node.getAttribute("pm");
+ Set<Integer> Nr = node.getAttribute("Nr");
64
65
int propSum = 0;
66
if (node.getAttribute("NrSum") != null) {
67
propSum = (Integer) node.getAttribute("NrSum");
68
} else {
69
- for (Integer n : node0Nr) {
70
- propSum += node0pm.get(n).get();
+ for (Integer n : Nr) {
+ propSum += pm.get(n).get();
71
}
72
node.setAttribute("NrSum", propSum);
73
0 commit comments