def get_minimal_bsgs(base, gens):
    G = PermutationGroup(gens)
    base, gens = G.schreier_sims_incremental()
    if not _is_minimal_bsgs(base, gens):
        return None
    return base, gens
Compute a minimal GSGS
dataset/ETHPy150Open sympy/sympy/sympy/combinatorics/tensor_can.py/get_minimal_bsgs