Statistics
| Branch: | Revision:

root / fiddle / boost-networkx-comparision / src / old_script.sh @ 1705a309

History | View | Annotate | Download (1.05 KB)

1
cd ./src
2

    
3
# Get centrality with Boost Graph Library
4
make
5
./boost_graph
6

    
7
# Get centrality with networkx Library
8
python networkx_graph.py
9

    
10
# Generate the text file with scores from BGL and networkx
11
python comparison.py
12

    
13
# Plot to see the discrepancy between 2 libraries
14
gnuplot
15
set term postscript enhanced color
16
set terminal postscript eps
17
set output "../output/centrality_for_edge_list.ps"
18
set title "Centrality for edge_list"
19
plot  "../output/score_summary_edge_list.txt" using 2 title 'networkx' pointtype 7 pointsize 0.1, \
20
      "../output/score_summary_edge_list.txt" using 3 title 'boost'
21

    
22
set output "../output/centrality_for_json_olsr.ps"
23
set title "Centrality for JSON OLRS"
24
plot  "../output/score_summary_json_olsr.txt" using 2 title 'networkx', \
25
      "../output/score_summary_json_olsr.txt" using 3 title 'boost'
26

    
27
set output "../output/centrality_for_json_topology.ps"
28
set title "Centrality for JSON Topology"
29
plot  "../output/score_summary_json_topology.txt" using 2 title 'networkx', \
30
      "../output/score_summary_json_topology.txt" using 3 title 'boost'