Skip to content

[WIP] Add Graph::mutated() (extra NodeStateData implementation) - #592

Draft
wbernoudy wants to merge 1 commit into
dwavesystems:mainfrom
wbernoudy:feature/graph-mutated-nodes-GraphStateData
Draft

[WIP] Add Graph::mutated() (extra NodeStateData implementation)#592
wbernoudy wants to merge 1 commit into
dwavesystems:mainfrom
wbernoudy:feature/graph-mutated-nodes-GraphStateData

Conversation

@wbernoudy

Copy link
Copy Markdown
Member

This is an alternate implementation of #589 that appends an extra pointer at the end of the State of a special GraphStateData type for storing information about the graph. We can then use this to implement Graph::mutated(). This avoids needing to change the definition of State.

AI Generation Disclosure

No AI tools used

This is implemented with a special `GraphStateData` class which is
derived from `NodeStateData`. We can then append this on the end of the
`State` vector and use it to implement `Graph::mutated()`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant