1. A method, comprising: analyzing, by a processor, an optimized directed graph of nodes representing a process flow, wherein the optimized directed graph comprises a first sub-graph and a second sub-graph, the first sub-graph being rooted at a first node and ending at a second node and comprising at least two predecessor nodes pointing at the second node, and the second sub-graph being rooted at the second node; performing, by the processor, a depth first traversal of all nodes of the first sub-graph starting at the first node and ending at the second node; after the depth first traversal of all nodes of the first sub-graph, performing, by the processor, a depth first traversal of all nodes of the second sub-graph starting from the second node; and outputting, by the processor, text associated with a linear form of the process flow based on the depth first traversals, wherein the outputting comprises at least one of displaying the text and storing the text.