forked from seanjaffe1/PA2
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathGraphAnalyzer.cpp
60 lines (40 loc) · 1.04 KB
/
GraphAnalyzer.cpp
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
#include "GraphHelper.h"
#include "FeatureGraph.h"
#include "GraphAnalyzer.h"
using namespace std;
void GraphAnalyzer::insert(Node n) {
G.insert(n);
// TODO Adjust calculations for ratio of open triangles and topKtriangles
};
void GraphAnalyzer::insert(Edge e) {
G.insert(e);
// TODO Adjust calculations for ratio of open triangles and topKtriangles
};
int GraphAnalyzer::diameter() {
//TODO
return 2;
};
float GraphAnalyzer::openClosedTriangleRatio() {
//TODO
return .5;
};
string GraphAnalyzer::topKOpenTriangles(int k) {
//TODO
return "2,3,4";
};
vector<int> GraphAnalyzer::topKNeighbors(int nodeID, int k, vector<float> w) {
//TODO
return vector<int> {3};
};
int GraphAnalyzer::topNonNeighbor(int nodeID, vector<float> w) {
//TODO
return 1;
};
float GraphAnalyzer::jacardIndexOfTopKNeighborhoods(int nodeAID, int nodeBiID, int k, vector<float> w) {
//TODO
return 0;
};
void GraphAnalyzer::remove(int nodeId) {
};
void GraphAnalyzer::remove(int nodeIdA, int nodeIdb) {
};