How to graph-max with Codex and 5.6 Sol:
1. Draw a graph (literally in any tool, even on paper)
2. Send it to Codex and say "write a code mode script that implements this workflow, run it with <your inputs>"
There's no step 3, it just works.
Seriously it's that simple.