forked from sth1997/GraphSet
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfsm_test.py
25 lines (23 loc) · 818 Bytes
/
fsm_test.py
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
import os
def main():
min_support = [x for x in range(30000, 0, -1000)] + [x for x in range(1000, 100, -100)]
max_edges = [2, 3]
graphs = []
graphs.append("patents.adj")
graphs.append("youtube.adj")
graphs.append("mico.adj")
g = []
g.append("pt")
g.append("yt")
g.append("mc")
for g_idx, graph in enumerate(graphs):
for b in min_support:
for a in max_edges:
bin_name = "fsm_test"
log_name = g[g_idx] + "_" + str(a) + "fsm_" + str(b) + ".log"
command = "OMP_PROC_BIND=true ./bin/" + bin_name + " /home/cqq/data/" + graph + " " + str(a) + " " + str(b) + " > " + log_name
print(command)
if(os.system(command)):
return
if __name__ == "__main__":
main()