Giter Club home page Giter Club logo

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'.

Here can download paper.

Architecture

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{lan2022aednet,
  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},
  pages={109033},
  year={2022},
  publisher={Elsevier}
}

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

Contributors

zixun-lan avatar

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.