Generate randomised reference networks from temporal network data.
python3 nullify/commandline.py [args] filename outputpath
python3 nullify/commandline.py -n 10 col_shuffle -cnum 2 --sortby-num 2 ~/Data/CollegeMsg.txt output
produces 10 null networks by shuffling the time column (column 2) of the datafile, then sorting by time (column 2) and writing to a folder named output.
This is currently the only feature implemented. Randomly shuffles a column (e.g. timestamp, source node, destination node)
Create randomised version of a temporal network datafile.
positional arguments:
filenamedatafile nameoutput_pathoutput location folder (generates it if not present)
optional arguments:
-h, --helpshow this help message and exit-n, --numbernumber of new datafiles to generate (default 1)-s --separatorfile line separator (default is" ")--headerinclude if datafile contains header (false by default)
Subcommands:
col_shuffleNull model based on shuffling contents of a column
Optional arguments:
-h, --helpshow this help message and exit-cname--column-namename of column to be shuffled-cnum, --column-numbernumber of column to be shuffled--sortby-namecolumn name to sort by (default no sorting)--sortby-numbercolumn number to sort by