Flowcharts in plain text with DOT


Plain text is beautiful. And flowcharts are very useful.

To make flowcharts in plain text, use DOT. For example, this:

digraph {
    label = "How to make sure 'input' is valid"

    start [shape = "box", style = rounded];
    end [shape = "box", style = rounded];
    if_valid [shape = "diamond", style = ""];
    message [shape = "parallelogram", style = ""]
    input [shape = "parallelogram", style = ""]

    start -> input;
    input -> if_valid;
    if_valid -> message [label = "no"];
    if_valid -> end [label = "yes"];
    message -> input;
}

becomes:

Flowchart example

To learn more, check out this friendly guide (where the above example is from).