AO* Search: (And-Or) Graph implementation

Hello Everyone. I need to implement AO* search algorithm but I am not able to figure out how to create the graph for this algorithm. Does anyone have an implementation of this algorithm?

AO* Algorithm