2
2
3
3
# Press Shift+F10 to execute it or replace it with your code.
4
4
# Press Double Shift to search everywhere for classes, files, tool windows, actions, and settings.
5
- import cdlib . algorithms
5
+
6
6
7
7
import GA
8
- import numpy as np
9
8
import networkx as nx
10
- import pandas as pd
11
9
import os
12
- import sys
13
- import matplotlib .pyplot as plt
14
- from IPython .core .display import display
15
- from sklearn .preprocessing import MinMaxScaler
16
- from cdlib import evaluation , algorithms , NodeClustering , ensemble
17
- import math
18
10
import multiprocessing as mp
19
11
import time
20
12
@@ -26,7 +18,7 @@ def print_hi(name):
26
18
27
19
def readParameter ():
28
20
print ("Begin!!!!!!!!" )
29
- path = "../ data/Parameters/"
21
+ path = "data/Parameters/"
30
22
for file in os .listdir (path ):
31
23
# Check whether file is in text format or not
32
24
if file .endswith (".txt" ):
@@ -70,7 +62,7 @@ def run(Gi, parameters, file_path):
70
62
# iterate from parameters
71
63
iterationSize , populationSize , crossoverPc , mutationPm = parameters
72
64
73
- pathResult = "../ output/Communities/"
65
+ pathResult = "output/Communities/"
74
66
75
67
if file_path .__contains__ ('.paj' ):
76
68
pathResult = pathResult + file_path .replace ('.paj' , '' )
@@ -116,7 +108,7 @@ def run(Gi, parameters, file_path):
116
108
117
109
def create_graph ():
118
110
119
- path = "../ data/BD /LFRNetsTest/"
111
+ path = "data/LFRNetsTest/"
120
112
for file in os .listdir (path ):
121
113
# Check whether file is in text format or not
122
114
if file .endswith (".dat" ) or file .endswith (".paj" ):
0 commit comments