DOT(1) General Commands Manual DOT(1) (NAME) dot - neato - twopi - circo - fdp - sfdp - patchwork - osage - (SYNOPSIS) dot [] [] neato [] [] twopi [] [] circo [] [] fdp [] [] sfdp [] [] patchwork [] [] osage [] [] (DESCRIPTION) . (plugin) . . dot . (DAG) <<>> . neato <<>> ( Kamada Kawai Information Processing Letters 31:1 ). twopi ( G. Wills Symposium on Graph Drawing GD'97 ). . . . circo ( Six Tollis GD '99 ALENEX '99 Kaufmann Wiese GD '02). - (biconnected) . block-cutpoint . . (outerplanar) . - (non-trivial) . . fdp <<>> . (force-directed) Fruchterman Reingold ( Software-Practice & Experience 21(11) -). sfdp <<>> (multi-scale) . patchwork (squarified treemap) ( .M. Bruls et al <> Proc. Joint Eurographics and IEEE TCVG Symp. on Visualization -). . osage . . pack packmode . (OUTPUT FORMATS) Graphviz dot ``dot -T:'' . . ``dot -Tpng:'' ``dot -Tpng:gd'' . Graphviz : -Tdot ( Dot ) -Txdot ( Dot ) -Tps ( PostScript) -Tpdf ( PDF) -Tsvg -Tsvgz ( SVG) -Tfig ( XFIG) -Tpng ( png) -Tgif ( gif) -Tjpg -Tjpeg ( jpeg) -Tjson ( xdot JSON) -Timap ( imagemap httpd href ) -Tcmapx ( html xhtml). . ':' -Tpng: . -P graphviz ..SH " (GRAPH FILE LANGUAGE)" .gv : [strict] (graph|digraph) name { statement-list } (top-level) . strict . digraph edgeop <<->>> . graph edgeop <<-->> . (Statements) : name=val; node [name=val]; edge [name=val]; name val . . n0 [name0=val0,name1=val1,...]; n0 ( ) . n0 edgeop n1 edgeop ... edgeop nn [name0=val0,name1=val1,...]; n0 n1 ... nn . . [subgraph name] { statement-list } . n0 ... nn . [subgraph name] . C /*C...*/ //... . ( C) . . https://www.graphviz.org/doc/info/lang.html . (GRAPH, NODE AND EDGE ATTRIBUTES) Graphviz name=value . . https://www.graphviz.org/doc/info/attrs.html . (Attributes Common to Nodes, Edges, Clusters and Graphs) href=url URL Image map PostScript URL URL Acrobat Distiller 3.0 . URL=url ( <> <> .) fontcolor=colorvalue . colorvalue "h,s,v" ( hue, saturation, brightness) 0 1 X11 white, black, red, green, blue, yellow, magenta cyan "#rrggbb" ( ) . https://www.graphviz.org/doc/info/attrs.html#k:color https://www.graphviz.org/doc/info/colors.html . fontsize=n n . fontname=name . label=text text \n \l \r . '\G' . '\N' . '\T' (tail) '\H' (head) '\E' : tail_node_name->head_node_name : tail_node_name--head_node_name . Graphviz HTML . https://www.graphviz.org/doc/info/shapes.html#html . shape=record { | } . (Port) < > . (Graph Attributes) size="x,y" (bounding box) . ratio=f (aspect ratio) f fill compress auto . layout=engine (dot neato fdp ) -K . margin=f ( ). ordering=out . rotate=90 (landscape) . (orientation=land .) center=n . color=colorvalue (bgcolor ). overlap=mode. . false Prism . scale . . true () . dot . stylesheet="file.css" (stylesheet) -Tsvg -Tsvgz . . splines true . polyline . ortho . . splines=false splines=line . dot true false . ( dot) nodesep=f . ranksep=f (ranks) . rankdir=LR|RL|BT . rank=same ( min max) . cluster . . ( neato) mode=val. . neato Stress Majorization . mode=KK (Gradient Descent) . model=val. neato . . model circuit . model subset . start=val. (seed) . val (PID) . epsilon=n. . 0.1 . ( twopi) root=ctr. . twopi . . ranksep=val. . 0.75 . ( circo) root=nodename. . () root . mindist=value. . circo 1.0 . ( fdp) K=val. . maxiter=val. (iterations) ..PP start=val. . val (seed) . val (process ID) . (Node Attributes) height=d width=d . fixedsize=true ( ). shape=builtin_polygon record epsf builtin_polygon plaintext, ellipse, oval, circle, egg, triangle, box, diamond, trapezium, parallelogram, house, hexagon, octagon, note, tab, box3d, or component, . ( : regular peripheries sides orientation distortion skew.) epsf shapefile EPSF . https://www.graphviz.org/doc/info/shapes.html . color=colorvalue style=filled fillcolor . fillcolor=colorvalue style=filled . fillcolor style=filled . style=filled solid dashed dotted bold invis xlabel="text" . label . target="target" imagemap (client-side) SVG URL . target URL . "_graphviz" . target ( ) target . '\N' '\G' . '\L' . tooltip="text" (tooltip) imagemap SVG URL . tooltip tooltip . '\N' '\G' . '\L' . : regular=n n x y . builtin_polygons . builtin_polygons ( ). peripheries=n . builtin_polygons . sides=n . n<3 . builtin_polygons . orientation=f . f . . builtin_polygons . distortion=f ( ) . -1 +1 . builtin_polygons . skew=f ( ) . -1 +1 . builtin_polygons . ( circo) root=true/false. . ( neato fdp) pin=val. val true . (Edge Attributes) weight=val val . dot . . twopi . neato fdp len . style=solid dashed dotted bold invis color=colorvalue . color=colorvaluelist colorvalue ':' . dir=forward back both none . tailclip,headclip=false . target="text" imagemap SVG URL . target ( ) target . '\T' '\H' '\E' '\G' . '\L' . tooltip="text" imagemap URL . tooltip . '\T' '\H' '\E' '\G' . '\L' . arrowhead,arrowtail=none, normal, inv, dot, odot, invdot, invodot, tee, empty, invempty, open, halfopen, diamond, odiamond, box, obox, crow. (glyph) . dir . arrowsize=val . inv_length=6,inv_width=7,dot_radius=2) headlabel,taillabel=text . labelfontcolor labelfontname labelfontsize . '\T' '\H' '\E' '\G' . '\L' . headhref="url" url imagemap PostScript SVG . '\T' '\H' '\E' '\G' . '\L' . headURL="url" (headURL headhref .) headtarget="headtarget" imagemap SVG URL . headtarget URL . headtarget ( ) headtarget target . '\T' '\H' '\E' '\G' . '\L' . headtooltip="tooltip" imagemap URL . tooltip headlabel . '\T' '\H' '\E' . '\L' . tailhref="url" url imagemap PostScript SVG . '\T' '\H' '\E' '\G' . '\L' . tailURL="url" (tailURL tailhref .) tailtarget="tailtarget" imagemap SVG URL . tailtarget URL . tailtarget ( ) tailtarget target . '\T' '\H' '\E' '\G' . '\L' . tailtooltip="tooltip" imagemap URL . tooltip taillabel . '\T' '\H' '\E' '\G' . '\L' ..PP labeldistance labelangle ( ) (head) (tail) . decorate . samehead,sametail (port) . ( dot) constraint=false (rank) . minlen=n n ( ). xlabel="text" dot . . xlabel . . ( neato fdp) len=f . 1.0 . (COMMAND-LINE OPTIONS) -G . -N . -E . : -Gsize="7,8" -Nshape=box -Efontsize=8 --filepath=path path . --filepath=bar/baz foo.png image="foo.png" bar/baz/foo.png . imagepath . -lfile PostScript . . -l . -Tlang . -n[1|2] ( / no-op) neato pos . overlap - splines . num : num = 1 -n. num > 1 - pos . neato pos . splines . num = 3 . -Klayout . -O -T . -P . -v ( / verbose) . -c . -qlevel . 1 . -sfscale fscale 72 . -y y . -ofile file . -x (reduce). -Lg (grid) . -LO . -Lml m-limit ( ) l . ( ). -Lni i . -LUi i . -LCv v . -LT[*]v ( ) v . -V () . -? . : https://www.graphviz.org/doc/info/command.html (EXAMPLES) digraph test123 { a -> b -> c; a -> {x y}; b [shape=box]; c [label="hello\nworld",color=blue,fontsize=24, fontname="Palatino-Italic",fontcolor=red,style=filled]; a -> z [label="hi", weight=100]; x -> z [label="multi-line\nlabel"]; edge [style=dashed,color=red]; b -> x; {rank=same; b x} } graph test123 { a -- b -- c; a -- {x y}; x -- c [w=10.0]; x -- y [w=5.0,len=3]; } . . . . . ( ) . (AUTHORS) Stephen C. North Emden R. Gansner John C. Ellson Yifan Hu (PNG GIF ) Thomas Boutell Truetype Freetype ( David Turner Robert Wilhelm Werner Lemberg) ( freetype-devel@lists.lrz-muenchen.de ). (SEE ALSO) Graphviz . . doc doc/info . tcldot(n),xcolors(1),libcgraph(3). E. R. Gansner, S. C. North, K. P. Vo, "DAG - A Program to Draw Directed Graphs", Software - Practice and Experience 17(1), 1988, pp. 1047-1062. E. R. Gansner, E. Koutsofios, S. C. North, K. P. Vo, "A Technique for Drawing Directed Graphs," IEEE Trans. on Soft. Eng. 19(3), 1993, pp. 214-230. S. North and E. Koutsofios, "Applications of graph visualization", Graphics Interface 94, pp. 234-245. E. R. Gansner and E. Koutsofios and S. C. North, "Drawing Graphs with dot," https://www.graphviz.org/pdf/dotguide.pdf. S. C. North, "NEATO User's Manual". https://www.graphviz.org/pdf/neatoguide.pdf. E. R. Gansner and Y. Hu, "Efficient, Proximity-Preserving Node Overlap Removal", J. Graph Algorithms Appl., 14(1) pp. 53-74, 2010. (NOTES) SIGUSR1 Graphviz neatogen . 12 January 2015 DOT(1)