Skip to content

Commit

Permalink
Add a release note for _Graph/Model changes
Browse files Browse the repository at this point in the history
  • Loading branch information
arcondello committed Dec 4, 2024
1 parent 0f33015 commit 572e514
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions releasenotes/notes/_Graph-e85b234643bb01a7.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
---
features:
- |
Add a new Cython extension type, ``_Graph``, in a new ``dwave.optimization._graph``
submodule. The ``_Graph`` class is responsible for managing a C++
``dwave::optimization::Graph``.
Also make ``Model`` a Python class that inherits from ``_Graph``, rather than
a Cython extension type.
upgrade:
- |
It is no longer possible to ``from dwave.optimization.model cimport Model``.
Instead, importers should ``from dwave.optimization._graph cimport _Graph``.
A ``_Graph`` has most of the functionality that a ``Model`` did, although
most of the symbol construction methods have been kept on ``Model``.

0 comments on commit 572e514

Please sign in to comment.