Skip to content

Latest commit

 

History

History

python_playground

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Shell To Convert File

Steps

  • sort
tail --lines=+2 out.digg-friends | sort -n -k4  > time_series_sorted_digg.txt
  • awk (select $1, $2)
cat time_series_sorted_digg.txt | awk '{print $1, $2}' > edge_list_digg.txt

in total with one instruction:

tail --lines=+2 out.digg-friends | sort -n -k4 | awk '{print $1, $2}' > digg-friends.txt
tail --lines=+2 out.flickr-growth | sort -n -k4 | awk '{print $1, $2}' > flickr-growth.txt

Reordering

reordering (0 to (n-1)): data.py

make sure to put files in the folder './data/datasets/'

cd data 
python data.py