Where does generating the graph take most of the time?

I’ll leave it to someone else to answer specifics about simplex, but if you want to share your example I can try profiling it to see what we can optimize. I’ve been doing some of this work lately, but we really need more expensive user examples to guide our investigation.

I am not sure what you mean by dot.render(). Graphviz is mostly C code, so there is nothing like this specific invocation.