Let S=x1,...,xn be a finite set and A=(axs,xt) a symmetric matrix, called Coxeter matrix, with axs,xs=1 and axs,xt∈2,3,...,∞ for xs≠xt. To A one associates the graph RA with vertices the elements of S and there is a unique edge between xs and xt whenever axs,xt≥3. The edge is between xs and xt is labeled by axs,xt whenever axs,xt≥4.
To such a coxeter matrix A (or equivalently the graph) we associate the generalized braid group that is defined as the group with generators x1,...,xn and relations of the form xs∗xt∗xs....=xt∗xs∗xt.... where there appear axs,xt factors.
Question: Given a Coxeter matrix (or equivalently graph) of Dynkin type. How can I obtain the relations of the braid group with Sage? I think there should be existing function to do this but I was not able to do it.
For example for the Dynkin type A3 the output should look as follows:
$[x1x3-x3x1,x1x2x1-x2x1x2,x2x3x2-x3x2x3]$.
Thank you for any help