Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chimera and Pegasus generators don't allow for Chimera/Pegasus indices when node/edge lists are passed in #170

Open
hhtong opened this issue Aug 6, 2020 · 0 comments

Comments

@hhtong
Copy link
Contributor

hhtong commented Aug 6, 2020

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: dwavesystems/dwave-system#289

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

No branches or pull requests

1 participant