TEXT FORMAT
Graphviz Plain logo

Graphviz Plain

Graphviz plain output format

A simple, line-based text format produced by Graphviz (-Tplain / -Tplain-ext) for applications that need only the geometry of a laid-out graph — node positions and sizes plus edge spline control points — rather than fully rendered graphics. Specification.

The output is a sequence of four statement types:

  • graph scale width height — drawing scale and dimensions, with the lower-left corner at the origin; all coordinates and lengths are unscaled.
  • node name x y width height label style shape color fillcolor — one per node.
  • edge tail head n x₁ y₁ … xₙ yₙ [label xl yl] style colorn control points of the B-spline forming the edge body.
  • stop — marks the end of the output.

The plain-ext variant is identical except that on edges it also records port names on the head and tail nodes, written as nodename:portname. Where a style attribute is absent, solid is used.

Alternative Names: plain

FeatureGraphviz plain output format
Multiple Graphs per Document not supported
Nodes supported
Hyperedges not supported
Parallel Edges supported
Self-loops supported
Edges on Edges not supported
Nested Graphs in Nodes not supported
Nested Graphs in Edges not supported
Nested Graphs in Graphs not supported
Node Labels supported
Edge Labels supported
Attributes on Nodes partial
Attributes on Edges partial
Attributes on Graphs partial
Typed Edges not supported

Frequently Asked Questions

What is a Graphviz plain output format file?

A Graphviz plain output format file stores a graph — its nodes, edges and attributes — in the Graphviz plain output format format (also: plain). See the feature table above for what it supports.

How do I open a Graphviz plain output format file?

Open it in a graph tool that supports Graphviz plain output format, or convert it to a format your tool reads. With GraphInOut you can convert Graphviz plain output format to GraphML, DOT, Connected JSON and more, right in your browser.

How do I convert a Graphviz plain output format file to another format?

Use the Convert from Graphviz plain output format link above: upload or paste your Graphviz plain output format file (input preset to Graphviz plain output format), choose a target format and download the result — free, no install.