Skip to content

Commit 3cc24c6

Browse files
committed
fix
1 parent cc377be commit 3cc24c6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

cp-algo/graph/shortest_path.hpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,16 @@ namespace cp_algo::graph {
99
node_index u;
1010
edge_index e;
1111
};
12-
std::vector<uint64_t> dist;
12+
std::vector<int64_t> dist;
1313
std::vector<reverse> pre;
14-
static constexpr uint64_t inf = 1e18;
14+
static constexpr int64_t inf = 1e18;
1515
shortest_path_context(int n)
1616
: dist(n, inf), pre(n) {}
1717
};
1818

1919
struct dijkstra_context : shortest_path_context {
2020
struct que_t {
21-
uint64_t dist;
21+
int64_t dist;
2222
node_index v;
2323
bool operator<(que_t const& other) const {
2424
return dist > other.dist;

0 commit comments

Comments
 (0)