A subgraph matching programming framework.
Project description
openGraphMatching
A graph/subgraph matching library.
Usage
Prerequisite pytorch>=1.6, networkx, pytorch-geometric
The NaiveMatch is the minium implementation of subgraph matching algorithm.
Here is the demo code for running GQL:
import openGraphMatching as ogm
# Prepare query graph q and target graph G in advance.
matcherObj = ogm.GQLMatcher(G) # Initialize the object with targer graph G
matcherObj.is_subgraph_match(q) # Run the check match process
Quickstart
- Clone this repo
- Install all prerequisite
pip install openGraphMatchingto install this package- Run
test.pyormulti-validate.pyto run the demo
Misc
-
Validate the algorithm.
- Use HPRD (9460 nodes, 34998 edges) to validate the correctness.
- Provides 200 quries(dense, 16 nodes)
- A correctness checker is implemented in
utils.py.
-
The data format of the datasets
- For each
.graphfile, the first line will always be
t x ywherexandyare two int indicates the number of nodes and edges- Vertex data
v v_id v_label v_degree - Edge data
e v_id v_id
- For each
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file openGraphMatching-0.1.0.tar.gz.
File metadata
- Download URL: openGraphMatching-0.1.0.tar.gz
- Upload date:
- Size: 15.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.8.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
92402c04e67723748b473b772381a4b6237aca6a72061d4a66fd3cc238351467
|
|
| MD5 |
9a66f4c65d4e05e59c384066f9bf1472
|
|
| BLAKE2b-256 |
106b75b81f8e8845a21e4f8ba66ba83ae57c51489f62a4c5b757fdf22acce24b
|
File details
Details for the file openGraphMatching-0.1.0-py3-none-any.whl.
File metadata
- Download URL: openGraphMatching-0.1.0-py3-none-any.whl
- Upload date:
- Size: 20.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.8.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8ec466beab9e9569a030af8c119ca8403f8f8f70c85475bef4d9e4850636d97f
|
|
| MD5 |
d06a41d2eec40f9db0ecc9ce3efa353e
|
|
| BLAKE2b-256 |
0a9612aaec0a3d5bfb2c8def4e592292c7010c22422e2b6c61a2fd6a68bfe04d
|