All Projects → dwavesystems → dwave-networkx

dwavesystems / dwave-networkx

Licence: Apache-2.0 license
D-Wave Systems extension of the NetworkX Python package for graphs and graph algorithms.

Programming Languages

python
139335 projects - #7 most used programming language
https://readthedocs.com/projects/d-wave-systems-dwave-networkx/badge/?version=latest https://circleci.com/gh/dwavesystems/dwave-networkx.svg?style=svg

D-Wave NetworkX

D-Wave NetworkX is an extension of NetworkX---a Python language package for exploration and analysis of networks and network algorithms---for users of D-Wave Systems. It provides tools for working with Chimera graphs and implementations of graph-theory algorithms on the D-Wave system and other binary quadratic model samplers.

The example below generates a graph for a Chimera unit cell (eight nodes in a 4-by-2 bipartite architecture).

>>> import dwave_networkx as dnx
>>> graph = dnx.chimera_graph(1, 1, 4)

See the documentation for more examples.

Installation

Installation from PyPi:

pip install dwave_networkx

Installation from source:

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.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].