This is the code for the WebConf'24 paper ``Sublinear-Time Opinion Estimation in the Friedkin--Johnsen Model'' by Stefan Neumann, Yinhao Dong, and Pan Peng, which is also available on arxiv.
When using our code, please cite our paper.
To run our code, proceed with the following steps:
- Download the datasets from GitHub and from the Network Repository. Put the datasets into the directory
/include/OpinionQuantities-mine/data/
. - Move to the directory
include/OpinionQuantities-mine
and then typezsh generateDatasets.sh
. - Go to
implementation/
and build the C++ oracle by typingg++-11 -O3 -Wall -fopenmp -std=c++11 oracle.cpp -o oracle
. - Now you can run the experiments by typing
python3 main.py
.