@ultipa-graph/ultipa-node-sdk
Version:
NodeJS SDK for ultipa-server 4.0
58 lines • 2.74 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.AlgorithmsEmbedding = void 0;
const connection_base_1 = require("../connection.base");
const algo_utils_1 = require("./algo.utils");
class AlgorithmsEmbedding extends connection_base_1.ConnectionBase {
__common_AlgorithmsEmbedding(req, name, commonReq) {
return __awaiter(this, void 0, void 0, function* () {
return (0, algo_utils_1.algoCommonSend)(this, req, name, commonReq);
});
}
algo_random_walk(req, commonReq) {
return __awaiter(this, void 0, void 0, function* () {
return this.__common_AlgorithmsEmbedding(req, "algo_random_walk", commonReq);
});
}
algo_random_walk_node2vec(req, commonReq) {
return __awaiter(this, void 0, void 0, function* () {
return this.__common_AlgorithmsEmbedding(req, "algo_random_walk_node2vec", commonReq);
});
}
algo_random_walk_struc2vec(req, commonReq) {
return __awaiter(this, void 0, void 0, function* () {
return this.__common_AlgorithmsEmbedding(req, "algo_random_walk_struc2vec", commonReq);
});
}
algo_node2vec(req, commonReq) {
return __awaiter(this, void 0, void 0, function* () {
return this.__common_AlgorithmsEmbedding(req, "algo_node2vec", commonReq);
});
}
algo_line(req, commonReq) {
return __awaiter(this, void 0, void 0, function* () {
return this.__common_AlgorithmsEmbedding(req, "algo_line", commonReq);
});
}
algo_struc2vec(req, commonReq) {
return __awaiter(this, void 0, void 0, function* () {
return this.__common_AlgorithmsEmbedding(req, "algo_struc2vec", commonReq);
});
}
algo_fastRP(req, commonReq) {
return __awaiter(this, void 0, void 0, function* () {
return this.__common_AlgorithmsEmbedding(req, "algo_fastRP", commonReq);
});
}
}
exports.AlgorithmsEmbedding = AlgorithmsEmbedding;
//# sourceMappingURL=embedding.js.map