Giter Site home page Giter Site logo

mgmn's Introduction

Multilevel Graph Matching Networks for Deep Graph Similarity Learning

1. Description

In this paper, we propose a Multilevel Graph Matching Network (MGMN) framework for computing the graph similarity between any pair of graph-structured objects in an end-to-end fashion. MGMN consists of a node-graph matching network for effectively learning cross-level interactions between each node of one graph and the other whole graph, and a siamese graph neural network to learn global-level interactions between two input graphs.

system

1.1 citation:

Xiang Ling, Lingfei Wu, Saizhuo Wang, Tengfei Ma, Fangli Xu, Chunming Wu and Shouling Ji, Multilevel Graph Matching Networks for Deep Graph Similarity Learning, IEEE Transactions on Neural Networks and Learning Systems (TNNLS), 2021

 @article{ling2021multilevel,
   title={Multilevel Graph Matching Networks for Deep Graph Similarity Learning},
   author={Ling, Xiang and Wu, Lingfei and Wang, Saizhuo and Ma, Tengfei and Xu, Fangli and Liu, Alex X and Wu, Chunming and Ji, Shouling},
   journal={IEEE Transactions on Neural Networks and Learning Systems (TNNLS)},
   publisher={IEEE},
   volume={},
   number={},
   pages={},
   url={https://ieeexplore.ieee.org/document/9516695},
   year={2021}
 }

1.2 glance:

├─── src
│    ├─── model
│    │    ├─── __init__.py
│    │    ├─── DenseGGNN.py
│    │    ├─── DenseGraphMatching.py
│    ├─── __init__.py
│    ├─── cfg_config.py
│    ├─── cfg_train.py
│    ├─── data.py
│    ├─── ged_config.py
│    ├─── ged_train.py
│    ├─── simgnn_utils.py
│    ├─── utils.py
├─── data
│    ├─── CFG
│    │    ├─── ...
│    ├─── GED
│    │    ├─── ...
├─── ...

2. How to run the codes

2.1 The Graph-Graph Classification Task

(1) Prepare the dataset for the classification task.

Datasets for the graph-graph classification task is provided in data/CFG directory.

(2) Specify some hyper-parameters for classification tasks in src/cfg_config.py

(3) Train and test the model by running the following command:

cd src
python cfg_train.py

2.2 The Graph-Graph Regression Task

(1) Prepare the dataset for regression tasks

Data for the graph-graph regression task are placed in /data/GED directory. All the files required by our codes can be downloaded following instructions in this repo. Please make sure you have downloaded all the 3 directories required by our code: data, save, and result.

After downloading these files, please put them under /data/GED, which is the default data folder by our configuration, or you can also specify your own data directory.

An example directory structure is:

data
├─── GED
│   ├── data
│   │    ├── AIDS700nef/
│   │    ├── LINUX/
│   ├── result
│   │    ├── aids700nef/
│   │    ├── linux/
│   ├── save
│   │    ├── dist_mat/
│   │    ├── aids700nef_ged_astar_gidpair_dist_map.pickle
│   │    ├── linux_ged_astar_gidpair_dist_map.pickle

(2) Specify some hyper-parameters for regression tasks in src/ged_config.py

(3) Train and test the model by running the following command:

cd src
python ged_train.py

mgmn's People

Contributors

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