Skip to content

Commit aa3b1ff

Browse files
committed
modifed path
1 parent 20201f6 commit aa3b1ff

File tree

1 file changed

+4
-12
lines changed

1 file changed

+4
-12
lines changed

src/main.py

+4-12
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,11 @@
22

33
# Press Shift+F10 to execute it or replace it with your code.
44
# Press Double Shift to search everywhere for classes, files, tool windows, actions, and settings.
5-
import cdlib.algorithms
5+
66

77
import GA
8-
import numpy as np
98
import networkx as nx
10-
import pandas as pd
119
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
1810
import multiprocessing as mp
1911
import time
2012

@@ -26,7 +18,7 @@ def print_hi(name):
2618

2719
def readParameter():
2820
print("Begin!!!!!!!!")
29-
path = "../data/Parameters/"
21+
path = "data/Parameters/"
3022
for file in os.listdir(path):
3123
# Check whether file is in text format or not
3224
if file.endswith(".txt"):
@@ -70,7 +62,7 @@ def run(Gi, parameters, file_path):
7062
# iterate from parameters
7163
iterationSize, populationSize, crossoverPc, mutationPm = parameters
7264

73-
pathResult = "../output/Communities/"
65+
pathResult = "output/Communities/"
7466

7567
if file_path.__contains__('.paj'):
7668
pathResult = pathResult + file_path.replace('.paj', '')
@@ -116,7 +108,7 @@ def run(Gi, parameters, file_path):
116108

117109
def create_graph():
118110

119-
path = "../data/BD/LFRNetsTest/"
111+
path = "data/LFRNetsTest/"
120112
for file in os.listdir(path):
121113
# Check whether file is in text format or not
122114
if file.endswith(".dat") or file.endswith(".paj"):

0 commit comments

Comments
 (0)