File tree Expand file tree Collapse file tree 4 files changed +7
-2
lines changed Expand file tree Collapse file tree 4 files changed +7
-2
lines changed Original file line number Diff line number Diff line change 1+ [submodule "cpp/external_projects/robin-hood-hashing "]
2+ path = cpp/external_projects/robin-hood-hashing
3+ url = https://github.com/martinus/robin-hood-hashing
Original file line number Diff line number Diff line change 44 rm main
55
66main : src/main.cpp
7- clang++ -std=c++17 -O3 -Wall -Wextra -pedantic-errors -march=native -mtune=native -o main src/main.cpp
7+ clang++ -std=c++17 -O3 -Wall -Wextra -pedantic-errors -march=native -mtune=native -I external_projects/robin-hood-hashing/src/include - o main src/main.cpp
Original file line number Diff line number Diff line change 66#include < queue>
77#include < cstdint>
88#include < limits>
9+ #include " robin_hood.h"
910
1011using NodeId = int ;
1112using NodeIndex = int ;
@@ -17,7 +18,7 @@ constexpr int DISTANCE_MULTIPLE = 100;
1718bool is_debug = false ;
1819
1920struct G {
20- std ::unordered_map<NodeId,NodeIndex> id2idx;
21+ robin_hood ::unordered_map<NodeId,NodeIndex> id2idx;
2122 std::vector<NodeId> idx2id = {0 };
2223 NodeIndex idx = 1 ;
2324 std::vector<std::vector<Edge>> edge = {std::vector<Edge>()};
You can’t perform that action at this time.
0 commit comments