We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 048816e commit df1652eCopy full SHA for df1652e
utils/webgraph.simba
@@ -220,8 +220,10 @@ begin
220
q := Self.Nodes[pathIdx].Node;
221
node.Indices := current.Indices + pathIdx;
222
223
- hyp := Hypot(p.x-q.x, p.y-q.y);
224
- node.Score := current.Score + hyp + (hyp*Random()*Rnd-Rnd/2);
+ hyp := Hypot(p.X-q.X, p.Y-q.Y);
+ node.Score := current.Score + hyp + (hyp*Random()*Rnd-Rnd/2);
225
+ if Self.Nodes[pathIdx].Typ <> EGraphNode.NORMAL then
226
+ node.Score += 10;
227
queue += node;
228
end;
229
0 commit comments