@ultipa-graph/ultipa-node-sdk
Version:
NodeJS SDK for ultipa-server 4.0
43 lines • 2.12 kB
JavaScript
;
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.AlgorithmsDegrees = void 0;
const connection_base_1 = require("../connection.base");
const algo_utils_1 = require("./algo.utils");
class AlgorithmsDegrees extends connection_base_1.ConnectionBase {
__common_AlgorithmsDegrees(req, name, commonReq) {
return __awaiter(this, void 0, void 0, function* () {
return (0, algo_utils_1.algoCommonSend)(this, req, name, commonReq);
});
}
algo_degree(req, commonReq) {
return __awaiter(this, void 0, void 0, function* () {
return this.__common_AlgorithmsDegrees(req, "algo_degree", commonReq);
});
}
algo_closeness_centrality(req, commonReq) {
return __awaiter(this, void 0, void 0, function* () {
return this.__common_AlgorithmsDegrees(req, "algo_closeness", commonReq);
});
}
algo_graph_centrality(req, commonReq) {
return __awaiter(this, void 0, void 0, function* () {
return this.__common_AlgorithmsDegrees(req, "algo_graph_centrality", commonReq);
});
}
algo_betweenness_centrality(req, commonReq) {
return __awaiter(this, void 0, void 0, function* () {
return this.__common_AlgorithmsDegrees(req, "algo_betweenness_centrality", commonReq);
});
}
}
exports.AlgorithmsDegrees = AlgorithmsDegrees;
//# sourceMappingURL=degrees.js.map