Giter Club home page Giter Club logo

zixun-lan / aednet-adaptive-edge-deleting-network-for-subgraph-matching Goto Github PK

View Code? Open in Web Editor NEW
50.0 3.0 7.0 161 KB

Neural Subgraph Matching Paper: "AEDNet: Adaptive Edge-Deleting Network For Subgraph Matching". [Neural-Subgraph-Matching Method For Learning-Subgraph-Matching. (Approximate Subgraph matching, SubgraphMatching)]

License: MIT License

Python 100.00%
subgraph-matching learning-subgraph-matching neural-subgraph-matching subgraph-isomorphism

aednet-adaptive-edge-deleting-network-for-subgraph-matching's Introduction

AEDNet: Adaptive Edge-Deleting Network For Subgraph Matching

This repository is the official implementation of 'AEDNet: Adaptive Edge-Deleting Network For Subgraph Matching'.

Official Download: Here can download official paper.

Free Download: Here can download paper.

Architecture

Official Download: Here can download official paper.

Free Download: Here can download paper.

Requirements

  • python3.7
  • pytorch==1.9.0
  • dgl==0.8.0
  • networkx==2.6.2
  • numpy==1.21.5
  • matplotlib==3.4.2

This code repository is heavily built on DGL, which is a DEEP GRAPH LIBRARY for Graph Computation. Please refer here for how to install and utilize the library.

Datasets

Generate Data

There are some samples in './data/'. You should generate data before training.

To generate the Synthetic Data, run this command:

python creatData.py

Processing Data

You can use dgraph.__getitem __() in dataSet.py to process one sample and then use collate() in dataSet.py to batch data.

See one data sample'interior structure

You can use this command to see one data sample's interior structure.

from dgl.data.utils import save_graphs, get_download_dir, load_graphs

graph_pair_path = './data/COX2/train/0.bin'  ## one data sample's path
graph_pair, label_dict = load_graphs(graph_pair_path)
graph_data = graph_pair[0]  ##  one sample's data graph in DGL form
graph_query = graph_pair[1]  ##  one sample's query graph in DGL form
label = label_dict['glabel']  ##  Ground-Truth matching relatinship
print(graph_data, graph_query, label)

Training

To train the model(s) in the paper, run this command:

python train.py

Reference

If you find our paper/code is useful, please consider citing our paper:

@article{lan2023aednet,
  title={AEDNet: Adaptive Edge-Deleting Network For Subgraph Matching},
  author={Lan, Zixun and Ma, Ye and Yu, Limin and Yuan, Linglong and Ma, Fei},
  journal={Pattern Recognition},
  volume={133},
  pages={109033},
  year={2023},
  publisher={Elsevier}
}

aednet-adaptive-edge-deleting-network-for-subgraph-matching's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

aednet-adaptive-edge-deleting-network-for-subgraph-matching's Issues

Request for Requirements File for AEDNet

Hi zixun-lan,

I hope this message finds you well. I am very interested in your AEDNet on GitHub and would like to replicate it on my local machine. However, I noticed that the repository does not include a requirements file listing the necessary dependencies.

Could you please provide a requirements.txt file or a list of the required packages?

Thank you very much for your assistance.

Best regards,
Emily Watson

关于评价指标f1score

代码和论文里说的是F1-Score,但是utils里的metric_f1函数计算的是top-1 accuarcy,并不是F1-Score的计算吧(如果我理解有误的话请指正

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.