Skip to content

Commit 6b0d16b

Browse files
rickumalimarijnh
authored andcommitted
forceDirected_novector is repeated.
Renamed the second one to forceDirected_localforce, as listed in the printed book.
1 parent 231ebed commit 6b0d16b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

code/chapter/22_fast.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ function forceDirected_novector(graph) {
119119
}
120120
}
121121

122-
function forceDirected_novector(graph) {
122+
function forceDirected_localforce(graph) {
123123
var forcesX = [], forcesY = [];
124124
for (var i = 0; i < graph.length; i++)
125125
forcesX[i] = forcesY[i] = 0;

0 commit comments

Comments
 (0)