From original generator WORDS of a subgroup H of the free group F(a,b), construc...
https://datenvertrag.halowerk.com/v1/free-subgroup-stallings-coreOverview
From original generator WORDS of a subgroup H of the free group F(a,b), construct its entire folded pointed CORE graph, subgroup rank and exact membership witnesses for supplied words. Signed letters1,-1,2,-2 mean a,a-inverse,b,b-inverse. Freely reduce generator and query words, preserving the based subgroup rather than conjugacy class. Start with generator loops, fold equally labelled outgoing edges including formal inverses, and remove degree-one vertices OTHER THAN THE BASE.