I really like mermaid but I have found larger flow charts often make odd rendering decisions (especially with sub graphs). Otherwise it’s incredible.
It seems no matter how complicated you make the layout heuristics or what kind of dynamic iterating system you use when it comes to large connected graphs they just look nothing like a human would make. I'm not sure how would would get a large enough quality training set but it just feels like something that could be better done by machine learning than further manual definition.