G.gens return parentless symbols; use generators(G);

This commit is contained in:
kalmar 2017-05-11 18:21:05 +02:00
parent 6c312cfef3
commit 1e8c9468de
1 changed files with 2 additions and 0 deletions

View File

@ -62,6 +62,8 @@ change_pow(s::FPSymbol, n::Int) = FPSymbol(s.str, n)
length(s::FPSymbol) = abs(s.pow)
generators(G::FPGroup) = [G(FPGroupElem(g)) for g in G.gens]
function show(io::IO, G::FPGroup)
print(io, "Finitely presented group on $(length(G.gens)) gens and $(length(G.rels)) relations:\n")
print(io, "gens:\t", join([g.gen for g in G.gens], ","),"\n")