# README for Code Supplement — [Network two-sample test for block models]

This repository contains the code used to generate the results presented in the paper "[Network two-sample test for block models]".

## Contents

The experiments are organized into the following files:

- `airoldi_test.R`: Runs the experiments on the graphon from section 5.4.
- `rdpg_test.R` and `rdpg_mixture_test.R`: Runs the experiments on the RDPG model from section 5.3.
- `datacomparison.R`: Runs the tests from section C.2 in the supplementary material.
- `careypriebetest.R`: Runs the test on simple 2-SBM model from section C.1 in the supplementary material.
- `avg_B_test.R`: Constructs the test statistics for the experiment on random connectivity matrices from section 5.1. You can access the results in .csv format in the directory /res.
- `SBMresults.R`: Aggregates the results and produces mean AUC/ROC plots from the .csv files produced by `avg_B_test.R`.
- `realdatacomparison.R`: Runs the experiments for the COLLAB dataset described in section 5.5.

