For CPU parallel run, install libomp-dev.
sudo apt install libomp-dev
A widely used topology can be downloaded from here:
https://www.rene-pickhardt.de/listchannels20220412.json
Then, conv.py can be used to convert the topology. Modify it according to your desires. The program can only handle a sorted list of edges in the ln_topology file. If you want to use larger topologies, create and convert accordingly. Number the vertices from 0. conv.py extracts nodes with more than 10 neighbors, you can change this parameter in the script.
Run 10 simulations on 10 OpenMP threads:
export OMP_NUM_THREADS=10 && g++ -o sim sim.cpp -fopenmp && ./sim [NUM_OF_VERTICES] [NUM_OF_EDGES]
Simulation results are published at:
Create eps files from numerical data under visualisation using gnuplot:
gnuplot pl.gp