Refactor: Replace std::map and std::set with unordered versions

This commit is contained in:
stefiosif
2022-10-12 17:26:11 +03:00
parent c525aeaa43
commit dc7fa93a6a
13 changed files with 44 additions and 41 deletions

View File

@@ -1,8 +1,8 @@
#ifndef GRAPH_H_
#define GRAPH_H_
#include <map>
#include <set>
#include <unordered_map>
#include <unordered_set>
#include <ostream>
#include <ranges>
@@ -36,7 +36,7 @@ public:
std::uint16_t E();
// Adjacency matrix representation
std::map<T, std::set<T>> adjList;
std::unordered_map<T, std::unordered_set<T>> adjList;
friend std::ostream& operator<<<>(std::ostream& os, Graph<T>& G);
};