Partition backtrack functions for lists – a simple example of using partn_ref#

EXAMPLES:

sage: import sage.groups.perm_gps.partn_ref.refinement_lists
>>> from sage.all import *
>>> import sage.groups.perm_gps.partn_ref.refinement_lists
sage.groups.perm_gps.partn_ref.refinement_lists.is_isomorphic(self, other)[source]#

Return the bijection as a permutation if two lists are isomorphic, return False otherwise.

EXAMPLES:

sage: from sage.groups.perm_gps.partn_ref.refinement_lists import is_isomorphic
sage: is_isomorphic([0,0,1],[1,0,0])
[1, 2, 0]
>>> from sage.all import *
>>> from sage.groups.perm_gps.partn_ref.refinement_lists import is_isomorphic
>>> is_isomorphic([Integer(0),Integer(0),Integer(1)],[Integer(1),Integer(0),Integer(0)])
[1, 2, 0]