aboutsummaryrefslogtreecommitdiffstats
path: root/Metrics/Metrics-Calculation/metrics_plot/src/GraphType.py
diff options
context:
space:
mode:
Diffstat (limited to 'Metrics/Metrics-Calculation/metrics_plot/src/GraphType.py')
-rw-r--r--Metrics/Metrics-Calculation/metrics_plot/src/GraphType.py28
1 files changed, 0 insertions, 28 deletions
diff --git a/Metrics/Metrics-Calculation/metrics_plot/src/GraphType.py b/Metrics/Metrics-Calculation/metrics_plot/src/GraphType.py
deleted file mode 100644
index eb35aba3..00000000
--- a/Metrics/Metrics-Calculation/metrics_plot/src/GraphType.py
+++ /dev/null
@@ -1,28 +0,0 @@
1import readCSV as reader
2import constants
3import numpy as np
4
5# graph stats for a collection of graphs
6class GraphCollection:
7
8 # init with path contrain files and number of files to read reader is imported from (readCSV)
9 def __init__(self, path, number, name, shouldShuffle = True):
10 self.out_ds = []
11 self.nas = []
12 self.mpcs = []
13 self.name = name
14 models = reader.readmultiplefiles(path, number, shouldShuffle)
15 for i in range(len(models)):
16 contents, out_d, na, mpc = reader.getmetrics(models[i])
17 self.out_ds.append(out_d)
18 self.nas.append(na)
19 self.mpcs.append(mpc)
20
21#Graph stat for one graph
22class GraphStat:
23 # init with teh file name of the stat
24 def __init__(self, filename):
25 contents, self.out_d, self.na, self.mpc = reader.getmetrics(filename)
26 self.num_nodes = np.array(contents[constants.NUMBER_NODES])
27 if constants.STATE_ID in contents:
28 self.id = (contents[constants.STATE_ID])[0]