I have previously used graph-easy[1] to turn Graphviz/DOT files into ASCII for code comments. It is great for state machines or explaining the relationship between different systems or classes, and if you check in the DOT file alongside the code, it is not too difficult to update later if something changes.<p>[1] <a href="https://metacpan.org/release/TELS/Graph-Easy-0.64/view/bin/graph-easy" rel="nofollow">https://metacpan.org/release/TELS/Graph-Easy-0.64/view/bin/g...</a>