Skip to content

Commit

Permalink
Upload code
Browse files Browse the repository at this point in the history
  • Loading branch information
fuxingcheng committed Dec 13, 2024
0 parents commit c5722a4
Show file tree
Hide file tree
Showing 157 changed files with 5,604 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .idea/.gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 12 additions & 0 deletions .idea/MSGC.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

156 changes: 156 additions & 0 deletions .idea/inspectionProfiles/Project_Default.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/inspectionProfiles/profiles_settings.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions .idea/modules.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

36 changes: 36 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# **Bi-Directional Multi-Scale Graph Dataset Condensation via Information Bottleneck(BiMSGC)**



This is the official code for AAAI 2025 Bi-Directional Multi-Scale Graph Dataset Condensation via Information Bottleneck

### Requirements
```
deeprobust==0.2.9
gdown==4.7.3
networkx==3.2.1
numpy==1.26.3
ogb==1.3.6
pandas==2.1.4
scikit-learn==1.3.2
scipy==1.11.4
torch==2.1.2
torch_geometric==2.4.0
torch-sparse==0.6.18
```

## Download Datasets
For Citeseer Pubmed and Squirrel, the code will directly download them.
For Reddit, Flickr, and Ogbn-arXiv, we use the datasets provided by [GraphSAINT](https://github.com/GraphSAINT/GraphSAINT). They are available on [Google Drive link](https://drive.google.com/open?id=1zycmmDES39zVlbVCYs88JTJ1Wm5FbfLz) (the links are provided by GraphSAINT team).
Download the files and unzip them to `data` at the root directory.

## Instructions

(1) Run preprocess.py to preprocess the dataset and conduct the spectral decomposition.

(2) Initialize node features of the synthetic graph by running feat_init.py.

(3) Distill the synthetic graph by running distill.py.

## Cite
Welcome to kindly cite our work!
Binary file added __pycache__/agent.cpython-39.pyc
Binary file not shown.
Binary file added __pycache__/agent2.cpython-39.pyc
Binary file not shown.
Binary file added __pycache__/dataset.cpython-39.pyc
Binary file not shown.
Binary file added __pycache__/utils.cpython-39.pyc
Binary file not shown.
Loading

0 comments on commit c5722a4

Please sign in to comment.