1 | initial version |

I could not find such a method, b ut you can use the generators of your permutations group as follows:

```
sage: G = PermutationGroup([[(1,2,3),(4,5)],[(3,4)]])
sage: G
Permutation Group with generators [(3,4), (1,2,3)(4,5)]
sage: d = {1:'a',2:'b',3:'c',4:'d',5:'e'}
sage: H = PermutationGroup([[d[i] for i in g.tuple()] for g in G.gens()], domain=d.values())
sage: H
Permutation Group with generators [('c','d'), ('a','b','c')('d','e')]
```

2 | No.2 Revision |

I could not find such a method, b ut you can use the generators of your permutations group as follows:

```
sage: G = PermutationGroup([[(1,2,3),(4,5)],[(3,4)]])
sage: G
Permutation Group with generators [(3,4), (1,2,3)(4,5)]
sage: d = {1:'a',2:'b',3:'c',4:'d',5:'e'}
sage: H = PermutationGroup([[d[i] for i in g.tuple()] for g in G.gens()], domain=d.values())
sage: H
Permutation Group with generators [('c','d'), ('a','b','c')('d','e')]
sage: H.domain()
{'a', 'b', 'c', 'd', 'e'}
sage: H.random_element()
('a','d','b','c')
sage: H.random_element()
('a','c')('b','d','e')
```

Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.