dwavesystems / dwavesystems/dwave-graphs
Chimera and Pegasus generators don't allow for Chimera/Pegasus indices when node/edge lists are passed in
- Dominant language
- Python
- Stars
- 95
- Forks
- 62
- Avg merge
- 7d 18h
- Merged PRs (30d)
- 1
Description
**Description**
chimera_graph() and pegasus_graph() have a parameter 'coordinates' that, if true, should mean that the node labels are 4-tuple chimera/pegasus indices. If false, they'll be linear integer indices.
This is currently not true when the user passes in node and edge lists (the node labels remain as linear integers even when coordinates=True). This seems like unwanted behaviour.
**To Reproduce**
The following two snippets will result in different indexing schemes.
```
G = dnx.chimera_graph(*shape,
node_list=nodelist,
edge_list=edgelist,
coordinates=True)
```
```
G = dnx.chimera_graph(*shape,
coordinates=True)
```
**Additional context**
May want to also consider this adjacent issue: https://github.com/dwavesystems/dwave-system/issues/289
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.