-
Notifications
You must be signed in to change notification settings - Fork 55
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
edge_list and node_list behave unexpectedly in graph generators #245
Comments
My concern is much more with NetworkX than with our generators. I see that in 3.0 Networkx dropped It feels like if we want this in order to get better results from |
For my use case I thought of a workaround, since subgraph doesn't require any of the baggage of the dwave_networkx |
It also appears that |
Good to know, will just randomize edgelist for this use case. |
Re: only running over the edge set in minorminer.subgraph sounds problematic to me: |
Description
It is useful to permute node and edge orderings in graph creation for example to randomize the behaviour of otherwise deterministic methods.
To Reproduce
Expected behavior
node_list should dictate node order, edge_list should dictate edge order.
Environment:
Additional context
I'll make a pull request to correct this unless a good case can be made not to, don't really want to mess with these core generators unnecessarily.
I want to use in combination with minorminer.subgraph.find_subgraph(S, T) which deterministically searches for a subgraph. Reordering the target (T) nodes allows a more uniform distribution across the processor with respect to some source graph S.
The text was updated successfully, but these errors were encountered: