Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def enumerate_restricted_permutations(n_states=50, num_neighbor_swaps=1): | |
"""enumerate all permutations accessible within num_neighbor_swaps applications of a move that swaps (i,i+1)""" | |
identity_permutation = tuple(range(n_states)) | |
def neighbor_swap(perm, i): | |
"""return copy where (perm[i], perm[i+1]) are swapped""" | |
assert (i + 1) < len(perm) | |
new_perm = list(perm) |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[#6X4:1] | |
c1c(OC)c(OC)C2C(=O)OCC2c1 (7 in RDKit, 6 in OpenEye) | |
c1c(O)C2C(=O)C3cc(O)ccC3OC2cc1(OC) (7 in RDKit, 6 in OpenEye) | |
[#1:1]-[#6X3] | |
c1c(OC)c(OC)C2C(=O)OCC2c1 (1 in RDKit, 2 in OpenEye) | |
c1c(O)C2C(=O)C3cc(O)ccC3OC2cc1(OC) (4 in RDKit, 5 in OpenEye) | |
[#1:1]-[#6X4] | |
c1c(OC)c(OC)C2C(=O)OCC2c1 (12 in RDKit, 11 in OpenEye) | |
c1c(O)C2C(=O)C3cc(O)ccC3OC2cc1(OC) (9 in RDKit, 8 in OpenEye) | |
[#6X3:1]-[#1:2] |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
NewerOlder