-
Notifications
You must be signed in to change notification settings - Fork 40
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
Need to seed/randomize the find_subgraph
function
#243
Comments
find_subgraph
functionfind_subgraph
function
A workaround you might try is to perform a graph automorphism or relabeling of the graph. I agree, would be useful to have option to randomize, or to have a generator of unique subgraphs, built in. |
there's a slight problem with this approach (pointed out to me by @boothby), because the variable names are changed but the node list order is the same. Node list order is used in the find_subgraph method. So another workaround is to recreate a graph by randomizing the node order. |
Yes, you need to regenerate the graph with permuted edge order (and/or permuted node order). It was pointed out to be me by @arcondello that subgraph is a function only of the edge order though, so node order only matters in so far as it impacts edge order. There is a related [pathological case] bug (that isolated nodes are ignored by find_subgraph). #254 |
I cannot randomize nor fix the seed used in
minorminer.subgraph.find_subgraph
find_subgraph(subgraph, big_graph, value_ordering='random')
always gives the same resultThe text was updated successfully, but these errors were encountered: