def get_transversals(base, gens):
 if (not base):
  return []
 stabs = _distribute_gens_by_base(base, gens)
 (orbits, transversals) = _orbits_transversals_from_bsgs(base, stabs)
 transversals = [{x: h._array_form for (x, h) in y.items()} for y in transversals]
 return transversals

def get_transversals ( base , gens ) : if ( not base ) : return [ ] stabs = _distribute_gens_by_base ( base , gens ) ( orbits , transversals ) = _orbits_transversals_from_bsgs ( base , stabs ) transversals = [ { x : h . _array_form for ( x , h ) in y . items ( ) } for y in transversals ] return transversals
return transversals for the group with bsgs base .