Skip to content

Commit

Permalink
Add example instructions to test_correlation.py and make executable
Browse files Browse the repository at this point in the history
  • Loading branch information
ldm2468 committed Jul 22, 2022
1 parent 18204b5 commit 376cc40
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions testers/test_correlation.py
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,10 @@ def calc_correlation(data):

if len(sys.argv) != 5:
print('usage: test_correlation.py <file 1> <column> <file 2> <column>')
print('example:')
print('$ ./main -uf sample-data/p2p-Gnutella08.snap')
print('$ ./testers/test_correlation.py sample-data/centrality/p2p-Gnutella08.snap.tab 4')
print(' p2p-Gnutella08_EigenCentrality.txt 1')
exit(1)

files = [sys.argv[1:3], sys.argv[3:5]]
Expand Down

0 comments on commit 376cc40

Please sign in to comment.