format code

This commit is contained in:
xlaussel
2020-11-25 12:42:01 +01:00
parent aa06029801
commit fcb7dd2a21
7 changed files with 110 additions and 98 deletions
+5 -5
View File
@@ -32,7 +32,7 @@ void relaxNode(ContractorHeap &heap,
}
const EdgeWeight to_weight = node_weight + data.weight;
const auto toHeapNode= heap.GetHeapNodeIfWasInserted(to);
const auto toHeapNode = heap.GetHeapNodeIfWasInserted(to);
// New Node discovered -> Add to Heap + Node Info Storage
if (!toHeapNode)
{
@@ -41,13 +41,13 @@ void relaxNode(ContractorHeap &heap,
// Found a shorter Path -> Update weight
else if (to_weight < toHeapNode->weight)
{
toHeapNode->weight=to_weight;
toHeapNode->weight = to_weight;
heap.DecreaseKey(*toHeapNode);
toHeapNode->data.hop = current_hop;
}
}
}
}
} // namespace
void search(ContractorHeap &heap,
const ContractorGraph &graph,
@@ -85,5 +85,5 @@ void search(ContractorHeap &heap,
relaxNode(heap, graph, node, node_weight, forbidden_node);
}
}
}
}
} // namespace contractor
} // namespace osrm