@@ -26,7 +26,7 @@ def print_hi(name):
26
26
27
27
def readParameter ():
28
28
print ("Begin!!!!!!!!" )
29
- path = "C: \\ Users \\ darian \\ PycharmProjects \\ GANet \\ Parameters\\ "
29
+ path = "../data/ Parameters/ "
30
30
for file in os .listdir (path ):
31
31
# Check whether file is in text format or not
32
32
if file .endswith (".txt" ):
@@ -70,7 +70,7 @@ def run(Gi, parameters, file_path):
70
70
# iterate from parameters
71
71
iterationSize , populationSize , crossoverPc , mutationPm = parameters
72
72
73
- pathResult = "C: \\ Users \\ darian \\ PycharmProjects \\ GANet \\ Communities\\ "
73
+ pathResult = "../output/ Communities/ "
74
74
75
75
if file_path .__contains__ ('.paj' ):
76
76
pathResult = pathResult + file_path .replace ('.paj' , '' )
@@ -100,7 +100,7 @@ def run(Gi, parameters, file_path):
100
100
101
101
102
102
for c , p in results :
103
- fileName = open (pathResult + "\\ " + p , 'w' )
103
+ fileName = open (pathResult + "/ " + p , 'w' )
104
104
for ci in c :
105
105
ci .sort ()
106
106
ci = str (ci ).replace (',' , '' ).replace ('[' , '' ).replace (']' , '' )
@@ -116,7 +116,7 @@ def run(Gi, parameters, file_path):
116
116
117
117
def create_graph ():
118
118
119
- path = "C: \\ Users \\ darian \\ PycharmProjects \\ GANet \\ BD \\ LFRNetsTest\\ "
119
+ path = "../data/BD/ LFRNetsTest/ "
120
120
for file in os .listdir (path ):
121
121
# Check whether file is in text format or not
122
122
if file .endswith (".dat" ) or file .endswith (".paj" ):
0 commit comments