Skip to content
This repository was archived by the owner on Nov 29, 2020. It is now read-only.

Commit 0d4b36c

Browse files
committed
use umap_WT
1 parent 12f44fe commit 0d4b36c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

MST.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ class MSTPrimInfo {
5858
};
5959

6060
template <typename GT, typename T, typename WT, typename AT>
61-
void MSTKruskal(GT& G, umap<Edge<T>, WT, EdgeHash<T>>& w, AT& A) {
61+
void MSTKruskal(GT& G, umap_WT& w, AT& A) {
6262
A.clear();
6363
DisjointSetForest<T> DF;
6464
for (auto i = G.V.begin(); i != G.V.end(); i++)
@@ -74,7 +74,7 @@ void MSTKruskal(GT& G, umap<Edge<T>, WT, EdgeHash<T>>& w, AT& A) {
7474
}
7575

7676
template <typename GT, typename T, typename WT, typename IT>
77-
void MSTPrim(GT& G, umap<Edge<T>, WT, EdgeHash<T>>& w, T r, IT& ans) {
77+
void MSTPrim(GT& G, umap_WT& w, T r, IT& ans) {
7878
using QT = std::pair<MSTPrimInfo<T, WT>, T>;
7979
FibHeap<QT> Q;
8080
umap<T, FNode<QT>*> Q_ptr;

0 commit comments

Comments
 (0)