chore: import upstream snapshot with attribution

This commit is contained in:
wehub-resource-sync
2026-07-13 12:36:30 +08:00
commit 55ab4e4a73
473 changed files with 72932 additions and 0 deletions
+19
View File
@@ -0,0 +1,19 @@
#pragma once
#include "../../common/common.h"
class UnionFind {
public:
UnionFind();
UnionFind(std::vector<node_t> elements);
node_t operator[](node_t object);
void _union(node_t object1, node_t object2);
private:
std::unordered_map<node_t, node_t> parents;
std::unordered_map<node_t, unsigned int> weights;
};
py::object kruskal_mst_edges(py::object G, py::object minimum, py::object weight, py::object data, py::object ignore_nan);
py::object prim_mst_edges(py::object G, py::object minimum, py::object weight, py::object data, py::object ignore_nan);
py::object boruvka_mst_edges(py::object G, py::object minimum, py::object weight, py::object data, py::object ignore_nan);