Skip to content

A jupyter notebook exploring the graph isomorphism problem and hybrid solvers

License

Notifications You must be signed in to change notification settings

dwave-training/graph-isomorphism-example

Repository files navigation

Open in GitHub Codespaces

Graph Isomorphism

The Graph Isomorphism problem asks whether two given graphs are isomorphic, that is, if a bijection (one-to-one mapping) of vertices between the graphs exists such that the adjacency structure is preserved.

Set up your environment

You can run this example without installation in cloud-based IDEs that support the Development Containers specification (aka "devcontainers").

For development environments that do not support devcontainers, install requirements:

pip install -r requirements.txt

If you are cloning the repo to your local system, working in a virtual environment is recommended.

Usage

A supported IDE must be authorized and configured to access the Leap service.

To run this demo locally, open up Jupyter Lab with a terminal. Run this command:

jupyter lab

In Jupyter Lab, you can open the notebook by clicking on the Graph_Isomorphism_Lecture.ipynb file in VS Code-based IDEs.

Code Overview

The notebook provided covers encoding the objective and constraints of the Graph Isomorphism problem with our open source D-Wave Ocean tools.

References

Wiki page on Graph Isomorphism.
Circuit Equivalence example in dwave-examples.

License

Released under the Apache License 2.0. See license here.

About

A jupyter notebook exploring the graph isomorphism problem and hybrid solvers

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published