break;
for (i = 1; i < graph[closestVertex].nedges; i++) {
neighbor = graph[closestVertex].edges[i];
- increaseKey(&H, neighbor,
- closestDist +
- (DistType) graph[closestVertex].ewgts[i], index,
- dist);
+ increaseKey(&H, neighbor, closestDist +
+ (DistType)graph[closestVertex].ewgts[i], index, dist);
}
prevClosestDist = closestDist;
}
break;
for (i = 1; i < graph[closestVertex].nedges; i++) {
neighbor = graph[closestVertex].edges[i];
- increaseKey(&H, neighbor,
- closestDist +
- (DistType) graph[closestVertex].ewgts[i], index,
- dist);
+ increaseKey(&H, neighbor, closestDist +
+ (DistType)graph[closestVertex].ewgts[i], index, dist);
}
}
break;
for (i = 1; i < graph[closestVertex].nedges; i++) {
neighbor = graph[closestVertex].edges[i];
- increaseKey_f(&H, neighbor,
- closestDist + graph[closestVertex].ewgts[i],
+ increaseKey_f(&H, neighbor, closestDist + graph[closestVertex].ewgts[i],
index, dist);
}
}
free(dists);
return offset;
}
-