8000 GitHub - liyongkang123/H3GNN: This is the code for our TKDD paper 《Heterogeneous Hyperbolic Hypergraph Neural Network for Friend Recommendation in Location-based Social Networks》.
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

This is the code for our TKDD paper 《Heterogeneous Hyperbolic Hypergraph Neural Network for Friend Recommendation in Location-based Social Networks》.

Notifications You must be signed in to change notification settings

liyongkang123/H3GNN

Repository files navigation

H3GNN

This is the code for our paper 《Heterogeneous Hyperbolic Hypergraph Neural Network for Friend Recommendation in Location-based Social Networks》, which has been published in TKDD.

Data Preparation

We provide the processed datasets for six cities in the data folder.

The Gowalla dataset comes from Yong Liu. We noticed that this page is no longer accessible due to the expiration of his homepage domain sometimes. Therefore, we have made the downloaded dataset available in our Google Drive.

!!! Importantly, in this work, we have open-sourced the data preprocessing code, using the Gowalla dataset as an example. This includes instructions on how to construct the heterogeneous hypergraph and the heterogeneous multigraph in HMGCL. Please refer to the data_preprocess folder.

Data Processing Steps:

  1. Download Raw Data
    Download the raw data into the data/yongliu_gowalla_data folder.

  2. Split Data by City
    Run data_preprocess/split_data_into_city.ipynb to divide the global dataset into individual cities.

  3. Build Hypergraph Data Format
    Run data_preprocess/build_hypergraph.ipynb to generate the hypergraph data format for each city.

  4. Build Multigraph Data Format
    Run data_preprocess/build_multigraph.ipynb to generate the multigraph data format for each city.

Note:
The hypergraph and multigraph data formats obtained here can be directly used in my previous HMGCL and HHGNN work, serving as baselines.

Requirements

  • Python 3.10, Pytorch, DGL, PyG, pytorch-scatter,torch_sparse, etc.
  • GPU is recommended with 48GB memory or more.

Usage

To run the code, you can use the following command

python train_hyperbolic.py  \
      --city CHI \
      --manifold_name poincare 

You can check all the configurable parameters in the config.py file.

Citation

If you find this work helpful, please consider citing our paper:

@article{li2025heterogeneous,
author = {Li, Yongkang and Fan, Zipei and Song, Xuan},
title = {Heterogeneous Hyperbolic Hypergraph Neural Network for Friend Recommendation in Location-based Social Networks},
year = {2025},
issue_date = {April 2025},
publisher = {Association for Computing Machinery},
address = {New York, NY, USA},
volume = {19},
number = {3},
issn = {1556-4681},
url = {https://doi.org/10.1145/3708999},
doi = {10.1145/3708999},
journal={ACM Transactions on Knowledge Discovery from Data},
month = feb,
articleno = {57},
numpages = {29},
}

About

This is the code for our TKDD paper 《Heterogeneous Hyperbolic Hypergraph Neural Network for Friend Recommendation in Location-based Social Networks》.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0