https://github.com/dwavesystems/dwave-networkx
D-Wave Systems extension of the NetworkX Python package for graphs and graph algorithms.
https://github.com/dwavesystems/dwave-networkx
Last synced: 6 months ago
JSON representation
D-Wave Systems extension of the NetworkX Python package for graphs and graph algorithms.
- Host: GitHub
- URL: https://github.com/dwavesystems/dwave-networkx
- Owner: dwavesystems
- License: apache-2.0
- Created: 2017-08-24T18:16:23.000Z (almost 9 years ago)
- Default Branch: main
- Last Pushed: 2025-06-06T18:08:38.000Z (12 months ago)
- Last Synced: 2025-10-21T20:56:13.684Z (7 months ago)
- Language: Python
- Homepage: https://docs.ocean.dwavesys.com/projects/dwave-networkx/en/latest
- Size: 2.19 MB
- Stars: 94
- Watchers: 12
- Forks: 57
- Open Issues: 35
-
Metadata Files:
- Readme: README.rst
- License: LICENSE.txt
Awesome Lists containing this project
README
.. image:: https://img.shields.io/pypi/v/dwave-networkx.svg
:target: https://pypi.org/project/dwave-networkx
.. image:: https://codecov.io/gh/dwavesystems/dwave-networkx/branch/main/graph/badge.svg
:target: https://codecov.io/gh/dwavesystems/dwave-networkx
.. image:: https://circleci.com/gh/dwavesystems/dwave-networkx.svg?style=svg
:target: https://circleci.com/gh/dwavesystems/dwave-networkx
==============
dwave-networkx
==============
.. start_dnx_about
dwave-networkx is an extension of `NetworkX `_\ ---a
Python language package for exploration and analysis of networks and network
algorithms---for users of D-Wave quantum computers. It provides tools for
working with quantum processing unit (QPU) topology graphs, such as the Pegasus
used on the Advantage\ :sup:`TM` quantum computer, and implementations of
graph-theory algorithms on D-Wave quantum computers and other binary quadratic
model (BQM) samplers.
This example generates a Pegasus graph of the size used by Advantage QPUs.
>>> import dwave_networkx as dnx
>>> graph = dnx.pegasus_graph(16)
.. end_dnx_about
Installation
============
**Installation from PyPi:**
.. code-block:: bash
pip install dwave_networkx
**Installation from source:**
.. code-block:: bash
pip install -r requirements.txt
python setup.py install
License
=======
Released under the Apache License 2.0.
Contributing
============
Ocean's `contributing guide `_
has guidelines for contributing to Ocean packages.