UNPKG

@ultipa-graph/ultipa-node-sdk

Version:

NodeJS SDK for ultipa-server 4.0

129 lines 5.65 kB
"use strict"; var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } return new (P || (P = Promise))(function (resolve, reject) { function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } step((generator = generator.apply(thisArg, _arguments || [])).next()); }); }; Object.defineProperty(exports, "__esModule", { value: true }); exports.AlgorithmsCommunity = void 0; const connection_base_1 = require("../connection.base"); const algo_utils_1 = require("./algo.utils"); class AlgorithmsCommunity extends connection_base_1.ConnectionBase { __commonAlgorithmsCommunity(req, name, commonReq) { return __awaiter(this, void 0, void 0, function* () { return (0, algo_utils_1.algoCommonSend)(this, req, name, commonReq); // return ConnectionBase.UqlGetSimple(this, uqlMaker) }); } algo_khop_all(req, commonReq) { return __awaiter(this, void 0, void 0, function* () { return this.__commonAlgorithmsCommunity(req, "algo_khop_all", commonReq); }); } algo_knn(req, commonReq) { return __awaiter(this, void 0, void 0, function* () { return this.__commonAlgorithmsCommunity(req, "algo_knn", commonReq); }); } algo_k_core(req, commonReq) { return __awaiter(this, void 0, void 0, function* () { return this.__commonAlgorithmsCommunity(req, "algo_k_core", commonReq); }); } algo_page_rank(req, commonReq) { return __awaiter(this, void 0, void 0, function* () { return this.__commonAlgorithmsCommunity(req, "algo_page_rank", commonReq); }); } algo_sybil_rank(req, commonReq) { return __awaiter(this, void 0, void 0, function* () { return this.__commonAlgorithmsCommunity(req, "algo_sybil_rank", commonReq); }); } algo_jaccard(req, commonReq) { return __awaiter(this, void 0, void 0, function* () { return this.__commonAlgorithmsCommunity(req, "algo_jaccard", commonReq); }); } algo_cosine_similarity(req, commonReq) { return __awaiter(this, void 0, void 0, function* () { return this.__commonAlgorithmsCommunity(req, "algo_cosine_similarity", commonReq); }); } algo_connected_component(req, commonReq) { return __awaiter(this, void 0, void 0, function* () { return this.__commonAlgorithmsCommunity(req, "algo_connected_component", commonReq); }); } algo_lpa(req, commonReq) { return __awaiter(this, void 0, void 0, function* () { return this.__commonAlgorithmsCommunity(req, "algo_lpa", commonReq); }); } algo_mst(req, commonReq) { return __awaiter(this, void 0, void 0, function* () { return this.__commonAlgorithmsCommunity(req, "algo_mst", commonReq); }); } algo_hanp(req, commonReq) { return __awaiter(this, void 0, void 0, function* () { return this.__commonAlgorithmsCommunity(req, "algo_hanp", commonReq); }); } algo_k_means(req, commonReq) { return __awaiter(this, void 0, void 0, function* () { return this.__commonAlgorithmsCommunity(req, "algo_k_means", commonReq); }); } algo_louvain(req, commonReq) { return __awaiter(this, void 0, void 0, function* () { return this.__commonAlgorithmsCommunity(req, "algo_louvain", commonReq); }); } algo_triangle_counting(req, commonReq) { return __awaiter(this, void 0, void 0, function* () { return this.__commonAlgorithmsCommunity(req, "algo_triangle_counting", commonReq); }); } algo_hyperANF(req, commonReq) { return __awaiter(this, void 0, void 0, function* () { return this.__commonAlgorithmsCommunity(req, "algo_hyperANF", commonReq); }); } algo_common_neighbours(req, commonReq) { return __awaiter(this, void 0, void 0, function* () { return this.__commonAlgorithmsCommunity(req, "algo_common_neighbours", commonReq); }); } algo_subgraph(req, commonReq) { return __awaiter(this, void 0, void 0, function* () { return this.__commonAlgorithmsCommunity(req, "algo_subgraph", commonReq); }); } algo_clustering_coefficient(req, commonReq) { return __awaiter(this, void 0, void 0, function* () { return this.__commonAlgorithmsCommunity(req, "algo_clustering_coefficient", commonReq); }); } algo_variable_compute(req, commonReq) { return __awaiter(this, void 0, void 0, function* () { return this.__commonAlgorithmsCommunity(req, "variable_compute", commonReq); }); } algo_bipartite(req, commonReq) { return __awaiter(this, void 0, void 0, function* () { return this.__commonAlgorithmsCommunity(req, "bipartite", commonReq); }); } algo_adamic_adar(req, commonReq) { return __awaiter(this, void 0, void 0, function* () { return this.__commonAlgorithmsCommunity(req, "adamic_adar", commonReq); }); } } exports.AlgorithmsCommunity = AlgorithmsCommunity; //# sourceMappingURL=community.js.map