ArticleslgStudy

computer science

Graphviz

Graphviz is a computer science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Graphviz rather than just read about it. In short: Graphviz (short for Graph Visualization Software) is a package of open-source tools initiated by AT&T Labs Research for drawing graphs (as in nodes and edges, not as in bar charts) specified in DOT language scripts having the file name extension "gv". It also provides libraries for software applications to use the tools.

Graphviz — main illustration
Graphviz — illustration

Key takeaways

  • Graphviz belongs to computer science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Graphviz to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Graphviz from memory before moving on to harder problems.

Reference excerpt

Graphviz (short for Graph Visualization Software) is a package of open-source tools initiated by AT&T Labs Research for drawing graphs (as in nodes and edges, not as in bar charts) specified in DOT language scripts having the file name extension "gv". It also provides libraries for software applications to use the tools. Graphviz is free software licensed under the Eclipse Public License.

Tools dot a command-line tool to produce layered graph drawings in a variety of output formats, such as (PostScript, PDF, SVG, annotated text and so on). neato useful for undirected graphs up to about 1000 nodes. "Spring model" layout minimizes global energy. fdp force-directed graph drawing similar to "spring model", but minimizes forces instead of energy. Useful for undirected graphs. sfdp multiscale version of fdp for the layout of large undirected graphs. twopi for radial graph layouts. Nodes are placed on concentric circles depending on their distance from a given root node. circo circular layout. Suitable for certain diagrams of multiple cyclic structures, such as certain telecommunications networks. dotty a graphical user interface to visualize and edit graphs. lefty a programmable (in a language inspired by EZ) widget that displays DOT graphs and allows the user to perform actions on them with the mouse. Therefore, Lefty can be used as the view in a model–view–controller GUI application that uses graphs. gml2gv, gv2gml convert to/from GML, another graph file format. graphml2gv convert a GraphML file to the DOT format. gxl2gv, gv2gxl convert to/from GXL, another graph file format.

Applications that use Graphviz

Notable applications of Graphviz include:

ArgoUML's alternative UML diagram rendering called argouml-graphviz. AsciiDoc can embed Graphviz syntax as a diagram. Bison is able to output the grammar as dot for visualization of the language. Confluence has a Graphviz plugin to render diagrams from text descriptions. ConnectedText has a Graphviz plugin. Doxygen uses Graphviz to generate diagrams, including class hierarchies, collaboration and call trees for source code. FreeCAD uses Graphviz to display the dependencies between objects in documents. Gephi has a Graphviz plugin. Gramps uses Graphviz to create genealogical (family tree) diagrams. Graph-tool a Python library for graph manipulation and visualization. OmniGraffle version 5 and later uses the Graphviz engine, with a limited set of commands, for automatically laying out graphs. Org-mode can work with DOT source code blocks. PlantUML uses Graphviz to generate UML diagrams from text descriptions. Puppet can produce DOT resource graphs that can be viewed with Graphviz. Scribus is an open-source DTP program that can use Graphviz to render graphs by using its internal editor in a special frame type called render frame. Sphinx is a documentation generator that can use Graphviz to embed graphs in documents. Terraform an infrastructure-as-code tool from Hashicorp allows output of an execution plan as a DOT resource graph TOra a free-software database development and administration GUI, available under the GNU GPL. Trac wiki has a Graphviz plugin. Zim includes a plugin that allows adding and editing in-page diagrams using the Graphviz dot language.

Version history

See also

Graph drawing Graph theory Microsoft Automatic Graph Layout

References

External links Official website graphviz on GitLab Graphviz, Projects & Software Page, AT&T Labs Research An Introduction to Graphviz and dot (M. Simionato, 2004) Create relationship diagrams with Graphviz (Shashank Sharma, 2005) Archived 2011-08-13 at the Wayback Machine

Illustrations

Graphviz illustration
Graphviz: A red–black tree plotted by Graphviz
A red–black tree plotted by Graphviz
Graphviz: Undirected graph showing adjacency of the 48 contiguous United States
Undirected graph showing adjacency of the 48 contiguous United States
Graphviz: A visualization of a JavaScript life cycle made by using Graphviz
A visualization of a JavaScript life cycle made by using Graphviz

Worked examples

Example 1 — a first encounter with Graphviz

Start with the simplest possible case. Write down what Graphviz claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In computer science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Graphviz before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Graphviz ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Graphviz

In research
Graphviz appears in computer science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Graphviz in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Graphviz is common in secondary-school and first-year university syllabi. It links to neighbouring topics Free diagramming software, Free software programmed in C, Graph drawing software, so understanding it makes those chapters shorter.
In everyday life
Look for Graphviz outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Graphviz” →

How to study Graphviz in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Graphviz means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Graphviz out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Graphviz in simple terms?

Graphviz (short for Graph Visualization Software) is a package of open-source tools initiated by AT&T Labs Research for drawing graphs (as in nodes and edges, not as in bar charts) specified in DOT language scripts having the file name extension "gv". It also provides libraries for software applica…

Why does Graphviz matter?

Because it connects several computer science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Graphviz?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Graphviz.

Tags

  • Free diagramming software
  • Free software programmed in C
  • Graph drawing software
  • Software that uses Tk (software)
  • Software using the Eclipse Public License

Keep exploring