| 1 | initial version |
I suggest to take inspiration from
src/sage/combinat/free_prelie_algebra.py:class FreePreLieAlgebra(CombinatorialFreeModule):
which define another kind of non-associative algebra on a vector space spanned by trees.
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.