Softwr

Mind Mapping and Diagramming · head to head

Graphviz vs Sphinx

Graphviz logo

Graphviz

Mind Mapping and Diagramming

Open source graph visualisation that draws diagrams from a plain text language

From
Free
Free plan
Yes
Sphinx logo

Sphinx

Documentation

Documentation generator built for large technical projects

From
Free
Free plan
Yes

The short version

  • Both are free.
  • Only Graphviz lists DOT text graph language; only Sphinx lists API autodoc.
  • Where Graphviz falls short: no visual editor; diagrams are written as text.
  • Where Sphinx falls short: reStructuredText is harder to write than Markdown and puts off contributors, though MyST now allows Markdown.

How do Graphviz and Sphinx differ?

Graphviz and Sphinx differ on pricing model, platforms and category. Only the attributes on which Graphviz and Sphinx actually diverge.

Attributes where Graphviz and Sphinx differ
AttributeGraphvizSphinx
Pricing modelOpen-sourceOpen source, no licence fee
PlatformsLinux, Windows, macOSLinux, macOS, Windows
CategoryMind Mapping and DiagrammingDocumentation

Identical on both: starting price (Free), free tier (Yes).

Not yet recorded: founded for Graphviz.

Which features does each one have?

They share no listed features; 8 appear only for Graphviz and 4 only for Sphinx. Drawn from each product's published feature list. An absence here means we hold no record of it - not that the product lacks it.

Only in Graphviz

  • DOT text graph language
  • Multiple layout engines
  • SVG, PNG and PDF output
  • PostScript output
  • Custom node shapes and styles
  • Hyperlinks in diagrams
  • gvpr graph stream editor
  • Command line and library use

Only in Sphinx

  • Cross-references
  • API autodoc
  • Multi-format output
  • Extension ecosystem

What is each one used for?

Graphviz is most often brought in for generating dependency graphs from code; Sphinx for large technical documentation needing reliable cross-references. The jobs each tool is most often brought in to do.

Graphviz

  • Generating dependency graphs from codenot Sphinx
  • Documentation diagrams from build toolsnot Sphinx
  • Network and state machine diagramsnot Sphinx
  • Embedding graph rendering in applicationsnot Sphinx

Sphinx

  • Large technical documentation needing reliable cross-referencesnot Graphviz
  • Python projects generating API docs from docstringsnot Graphviz
  • Documentation that must ship as PDF as well as HTMLnot Graphviz

Where do Graphviz and Sphinx fall short?

Graphviz's most cited limit: no visual editor; diagrams are written as text. Sphinx's: reStructuredText is harder to write than Markdown and puts off contributors, though MyST now allows Markdown. Documented limitations, not opinions. Every one is a constraint you would hit in normal use.

Graphviz

  • No visual editor; diagrams are written as text
  • Automatic layout gives little control over exact placement
  • Not intended to replace general diagramming tools
  • macOS arm64 installer was still in progress on the download page

Sphinx

  • reStructuredText is harder to write than Markdown and puts off contributors, though MyST now allows Markdown
  • Configuration is complex and the default output is dated-looking without theme work
  • Build times on large documentation sets are slow
  • Heavier than the problem for a small project that only needs a few pages

How much do Graphviz and Sphinx cost?

Graphviz is free to use; Sphinx is free to use. Plan by plan below, from each vendor's own pricing page.

Graphviz

Free

No published plan breakdown. See the Graphviz review.

Sphinx

Free
  • SphinxFree
    • Full functionality
    • Commercial use permitted
    • Community support

Which should you pick?

Choose Graphviz if

  • You need dot text graph language.
  • You want to start without paying.
  • You work on Linux, Windows, macOS.
  • You also want multiple layout engines.

Choose Sphinx if

  • You need cross-references.
  • You want to start without paying.
  • You work on Linux, macOS, Windows.
  • You also want api autodoc.

Questions people ask

Is Graphviz or Sphinx better?
It depends on the job. Graphviz fits generating dependency graphs from code; Sphinx fits large technical documentation needing reliable cross-references. Graphviz starts at Free and Sphinx at Free.
Which is cheaper, Graphviz or Sphinx?
Graphviz starts at Free and Sphinx at Free.
Does Graphviz or Sphinx run on more platforms?
Graphviz runs on Linux, Windows, macOS. Sphinx runs on Linux, macOS, Windows.
Can I use Graphviz for free?
Both have a free tier, so you can try either at no cost before committing.
What is Graphviz best used for?
Graphviz is most often used for generating dependency graphs from code, documentation diagrams from build tools, network and state machine diagrams, embedding graph rendering in applications. Of those, generating dependency graphs from code and documentation diagrams from build tools are not what Sphinx is typically brought in for.
What can Graphviz do that Sphinx cannot?
Graphviz covers DOT text graph language, Multiple layout engines, SVG, PNG and PDF output, PostScript output. Sphinx covers Cross-references, API autodoc, Multi-format output, Extension ecosystem.

Answered from the vendors’ own pages

Graphviz: What licence does Graphviz use?

Current versions are licensed on an open source basis under the Eclipse Public License.

Source
Sphinx: Is Sphinx free?

Yes, open source under the BSD licence.

Graphviz: What does Graphviz output?

It produces images, SVG, PDF and PostScript, among other formats, from graphs described in its text language.

Source
Sphinx: Do I have to write reStructuredText?

Not any more. The MyST extension allows Markdown, though reStructuredText remains the native format and most examples use it.

Graphviz: Which operating systems are supported?

The download page lists Linux, Windows and macOS packages, plus Solaris and several BSD systems.

Source
Sphinx: Why do large projects choose Sphinx?

Automatic cross-referencing and API extraction from docstrings, which lighter generators do not provide.

Graphviz: Who started Graphviz?

It was initiated by AT&T Labs Research.

Source
Share

Related pages

Other head to heads