forked from dwavesystems/dwave-optimization
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a release note for _Graph/Model changes
- Loading branch information
1 parent
0f33015
commit 572e514
Showing
1 changed file
with
14 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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``. |