Revision f9e3a1f0 custompackages/graph-parser/src/script.sh

View differences:

custompackages/graph-parser/src/script.sh
26 26
#########
27 27
## TRY TO AVOID MODIFYING ANYTHING BELOW THIS LINE
28 28
#########
29
## Compile the source code
29 30
make
30 31

  
31
## Remove all the previous output
32
# rm ../output/*.out
32
## Create output directories if they are not existed
33
declare -a dir_arr=("../output" "../output/visualization")
34
for i in "${dir_arr[@]}"
35
do
36
    echo $i;
37
    if [ ! -d $i ]; then
38
        mkdir $i;
39
    fi
40
done
33 41

  
42
filepath="../input/simple.edges"
43
input_type=1
34 44
## Running the script
35
../bin/main $WEIGHTED_GRAPH $TARGETS_INCLUSION
45
./graph-parser $filepath $input_type $WEIGHTED_GRAPH $TARGETS_INCLUSION
36 46

  
37 47
## Plotting the results
38 48
if [ $WEIGHTED_GRAPH = "true" ]

Also available in: Unified diff