JamesWhiteSnow / GNN-PE

7 stars 1 forks source link

GNN-PE

In this project, we open-source the source code of our GNN-PE approach, including both offline and online processes (i.e., offline.tar.gz and online.tar.gz).

The real-world and default synthetic datasets used in our paper are stored in the datasets directory. As some synthetic datasets are large, we do not upload them. You can easily generate them by following the instruction in our paper.

On Git Hub, we will introduce how to reproduce the results of our experiments over the Yeast dataset.

Note that since we have prepared all the necessary data, you can run the online process directly without running offline process first.

Offline Process

  1. Download the offline.tar.gz, execute the following commands to decompress the source code and go to the root directory of the file.
tar -xzvf offline.tar.gz
cd offline
  1. Under the root directory of the offline directory, execute the following conda commands to configure the Python environment.
conda create --name <new_environment_name> --file requirements.txt
conda activate <new_environment_name>
  1. Then execute the following command to run the experiment over the Yeast dataset, which will output the necessary data for online query answering.
python main.py

Online Process

  1. Download the online.tar.gz, execute the following commands to decompress the source code and go to the root directory of the file.
tar -xzvf online.tar.gz
cd online
  1. Under the root directory of the online directory, execute the following commands to compile the source code.
mkdir build
cd build
cmake ..
make
  1. Execute the following command to run the experiment over the Yeast dataset (the necessary pre-computed data produced by the offline process is already stored in the Datasets directory).
./build/src/main