Skip to main content

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 openGraphMatching to install this package
  • Run test.pyor multi-validate.py to run the demo

Misc

  1. 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.
  2. The data format of the datasets

    1. For each .graph file, the first line will always be

    t x y where x and y are two int indicates the number of nodes and edges

    1. Vertex data v v_id v_label v_degree
    2. Edge data e v_id v_id

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

openGraphMatching-0.1.0.tar.gz (15.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

openGraphMatching-0.1.0-py3-none-any.whl (20.5 kB view details)

Uploaded Python 3

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

Hashes for openGraphMatching-0.1.0.tar.gz
Algorithm Hash digest
SHA256 92402c04e67723748b473b772381a4b6237aca6a72061d4a66fd3cc238351467
MD5 9a66f4c65d4e05e59c384066f9bf1472
BLAKE2b-256 106b75b81f8e8845a21e4f8ba66ba83ae57c51489f62a4c5b757fdf22acce24b

See more details on using hashes here.

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

Hashes for openGraphMatching-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8ec466beab9e9569a030af8c119ca8403f8f8f70c85475bef4d9e4850636d97f
MD5 d06a41d2eec40f9db0ecc9ce3efa353e
BLAKE2b-256 0a9612aaec0a3d5bfb2c8def4e592292c7010c22422e2b6c61a2fd6a68bfe04d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page