ls &&
wget -i https://graphalytics.org/assets/datasets/xs.txt && \
wget -i https://graphalytics.org/assets/datasets/s.txt && \
wget -i https://graphalytics.org/assets/datasets/m.txt && \
wget -i https://graphalytics.org/assets/datasets/l.txt && \
wget -i https://graphalytics.org/assets/datasets/xl.txt && \
wget -i https://graphalytics.org/assets/datasets/2xl.txt && \
unzip '*.zip' && \
mv */* . && \
rm -rf */
Graphs that only have an unweighted variant: cit-Patents, wiki-Talk, twitter-mpi, friendster, graph500*
for d in */; do echo ${d::-1} && \
cd $d && \
mv graph.mtx ${d::-1}.mtx && \
mv graph.vtx ${d::-1}.vtx && \
zip ${d::-1}.mtx.zip ${d::-1}.mtx && \
zip ${d::-1}.vtx.zip ${d::-1}.vtx && \
cd ..; \
done
Graphs that have a weighted variant: dota-league, kgs, datagen*
We produce two sets of graphs from these. Note that you need to categorize the directories manually , e.g. for graphZ
, directory graphZ
goes to the unweighted variant and graphZ.e_weight
goes to the weighted one.
for d in */; do echo ${d::-1} && \
cd $d && \
mv graph.mtx ${d::-1}-unweighted.mtx && \
mv graph.vtx ${d::-1}-unweighted.vtx && \
zip ${d::-1}-unweighted.mtx.zip ${d::-1}-unweighted.mtx && \
zip ${d::-1}-unweighted.vtx.zip ${d::-1}-unweighted.vtx && \
cd ..; \
done
for d in *.e_weight/; do echo ${d::-10} && \
cd $d && \
mv graph.mtx ${d::-10}-weighted.mtx && \
mv graph.vtx ${d::-10}-weighted.vtx && \
zip ${d::-10}-weighted.mtx.zip ${d::-10}-weighted.mtx && \
zip ${d::-10}-weighted.vtx.zip ${d::-10}-weighted.vtx && \
cd ..;
done