UNFLATTEN(1)
π UNFLATTEN(1) π
okay bestie, welcome to the unflatten page from the General Commands Manual β she's a graph-glow-up girlie and she's about to fix ur ugly layouts β¨
β¨ NAME β¨
unflatten β adjust directed graphs to improve layout aspect ratio π¦
β¨ SYNOPSIS β¨
unflatten [-f?] [-llen] [-clen ] [ -o outfile ] [ files ]
β¨ DESCRIPTION β¨
so unflatten is a preprocessor to dot, and her whole job is making graphs look less unhinged π
. Specifically, she improves the aspect ratio of graphs that have a ton of leaves or disconnected nodes β bc ngl, the usual layout for a graph like that is so wide or so tall it's giving "screenshot won't fit on the slide" π.
What she does is create chains with invisible edges, or adjust the minlen on edges, to improve layout compaction. Lowkey iconic behaviour fr fr. π
β¨ OPTIONS β¨
the following options are supported, and yes we're listing every single one:
-llen β theminlenof leaf edges gets staggered between1and len (and len is a small integer, so don't get crazy with it).-fβ applies the-loption to fanout nodes whose indegree and outdegree are both 1. This helps with structures such asa -> {w x y z} -> b. π«Ά
heads up bestie: this option only works if the-lflag is set. No-l, no-fmagic. that's just the rules.
-clen β form disconnected nodes into chains of up to len edges. π-ooutfile β causes the output to be written to the specified file; by default, output is written to stdout. (yes, the default is stdout, she said what she said)-?β prints the usage and exits. short, sweet, iconic. π
β¨ OPERANDS β¨
the following operand is supported:
- files β names of files containing 1 or more graphs in
dotformat. If no files operand is specified, the standard input will be used. πΈ
β¨ AUTHORS β¨
- Stephen C. North
<north@research.att.com> - Emden R. Gansner
<erg@research.att.com>
the literal main characters of this whole thing, we stan π§π
β¨ SEE ALSO β¨
gc(1), dot(1), acyclic(1), gvpr(1), gvcolor(1), ccomps(1), tred(1), libgraph(3)
the whole friend group, go say hi π
and that's the page!! this version dropped way back on 21 January 2001 as part of the unflatten(1) manual β old money, timeless vibe. love that for her. mwah πβ¨
π¦ where this page comes from
- alpine 3.22: graphviz-doc 12.2.1-r0 Β· EPL-1.0
- alpine 3.23: graphviz-doc 12.2.1-r0 Β· EPL-1.0
- alpine 3.24: graphviz-doc 12.2.1-r3 Β· EPL-1.0
- arch rolling: graphviz 16.1.0-2 Β· EPL
- fedora 43: graphviz 13.1.1-3.fc43 Β· epl-1.0 AND cpl-1.0 AND bsd-3-clause AND mit AND gpl-3.0-or-later WITH bison-exception-2.2 AND apache-1.1 AND lgpl-2.0-or-later WITH libtool-exception AND smlnj AND hpnd-uc
- fedora 43: graphviz 13.1.1-3.fc43 Β· epl-1.0 AND cpl-1.0 AND bsd-3-clause AND mit AND gpl-3.0-or-later WITH bison-exception-2.2 AND apache-1.1 AND lgpl-2.0-or-later WITH libtool-exception AND smlnj AND hpnd-uc
- fedora 43: graphviz 13.1.2-3.fc43 Β· epl-1.0 AND cpl-1.0 AND bsd-3-clause AND mit AND gpl-3.0-or-later WITH bison-exception-2.2 AND apache-1.1 AND lgpl-2.0-or-later WITH libtool-exception AND smlnj AND hpnd-uc
- fedora 43: graphviz 13.1.2-3.fc43 Β· epl-1.0 AND cpl-1.0 AND bsd-3-clause AND mit AND gpl-3.0-or-later WITH bison-exception-2.2 AND apache-1.1 AND lgpl-2.0-or-later WITH libtool-exception AND smlnj AND hpnd-uc
- fedora 44: graphviz 14.1.2-2.fc44 Β· epl-1.0 AND cpl-1.0 AND bsd-3-clause AND mit AND gpl-3.0-or-later WITH bison-exception-2.2 AND apache-1.1 AND lgpl-2.0-or-later WITH libtool-exception AND smlnj AND hpnd-uc
- fedora 44: graphviz 14.1.2-2.fc44 Β· epl-1.0 AND cpl-1.0 AND bsd-3-clause AND mit AND gpl-3.0-or-later WITH bison-exception-2.2 AND apache-1.1 AND lgpl-2.0-or-later WITH libtool-exception AND smlnj AND hpnd-uc
- fedora 44: graphviz 14.1.4-2.fc44 Β· epl-1.0 AND cpl-1.0 AND bsd-3-clause AND mit AND gpl-3.0-or-later WITH bison-exception-2.2 AND apache-1.1 AND lgpl-2.0-or-later WITH libtool-exception AND smlnj AND hpnd-uc
- fedora 44: graphviz 14.1.4-2.fc44 Β· epl-1.0 AND cpl-1.0 AND bsd-3-clause AND mit AND gpl-3.0-or-later WITH bison-exception-2.2 AND apache-1.1 AND lgpl-2.0-or-later WITH libtool-exception AND smlnj AND hpnd-uc
- nixos 26.05: graphviz 12.2.1
- nixpkgs unstable: graphviz 15.1.1
- opensuse-leap 16.0: graphviz 12.2.1-160000.1.1 Β· EPL-1.0
- opensuse-leap 16.0: graphviz 12.2.1-160000.1.1 Β· EPL-1.0
- opensuse-leap 16.0: graphviz 12.2.1-160000.1.1 Β· EPL-1.0
- opensuse-leap 16.0: graphviz 12.2.1-160000.1.1 Β· EPL-1.0
- ubuntu resolute: graphviz-tools 14.1.2-1ubuntu1 Β· EPL-1.0
- ubuntu stonking: graphviz-tools 14.1.2-1ubuntu2 Β· EPL-1.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms