Question: how to convert word relation into graph

for example, how to convert below word relation into graph

a^2 = 1

a*b = b*a

Please Wait...