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
+25
View File
@@ -0,0 +1,25 @@
#include <string>
#include <vector>
#include "core/k_core.cuh"
#include "common.h"
namespace gpu_easygraph {
using std::vector;
int k_core(
_IN_ const std::vector<int>& V,
_IN_ const std::vector<int>& E,
_OUT_ std::vector<int>& KC
) {
int len_V = V.size() - 1;
int len_E = E.size();
KC = vector<int>(len_V, 0);
int r = cuda_k_core(V.data(), E.data(), len_V, len_E, KC.data());
return r;
}
} // namespace gpu_easygraph