Skip to content
This repository was archived by the owner on May 13, 2026. It is now read-only.

Latest commit

 

History

8 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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

Stars

0 stars

Watchers

3 watching

Forks

Releases

Packages

Used by

Contributors

Languages