-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathQueryInterface.h
28 lines (18 loc) · 965 Bytes
/
QueryInterface.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#ifndef PERTURBATION_QUERYINTERFACE_H
#define PERTURBATION_QUERYINTERFACE_H
#include "GraphManager.h"
#include "EntityPerturbation.h"
#include <fstream>
class QueryInterface{
public:
std::vector<std::string> queryIRIVec,patternVec;
std::vector<uint32_t> attrVec,attrValVec,cxtNodeVec;
std::vector<double> oriScoreVec;
double timeLimit = 300000;
void perturbPrep(GraphManager &gm, const char *filename);
void processBaseData(GraphManager &gm, std::string nidQueryFile, std::string opFilename, std::string prefix);
void processSPData(GraphManager &gm, std::string nidQueryFile, std::string opFilename, std::string prefix, double sampleRatio);
void processBaseEntity(GraphManager &gm, std::string nidQueryFile, std::string opFilename, std::string prefix);
void processSPEntity(GraphManager &gm, std::string nidQueryFile, std::string opFilename, std::string prefix, double sampleRatio);
};
#endif