Skip to content

graphviz: a README that says what the dot build leaves out - #90

Merged
closer-claudio merged 1 commit into
mainfrom
claudio/20261121-left-out
Nov 21, 2026
Merged

closer-claudio merged 1 commit into
mainfrom
claudio/20261121-left-out

Conversation

@closer-claudio

Copy link
Copy Markdown
Contributor

🎯 Why

dot here is built with no library but expat. Nothing in the repository said what that costs a caller: graphviz/config.h names zlib, pango, cairo, gd and ltdl, and there was no graphviz/README.md. A consumer holding its output to this dot could not tell an answer from a gap of the build.

🛠️ What

graphviz/README.md, new: what the directory holds, and a section on what the build leaves out and what a caller sees for each.

  • No triangulation library (GTS): sfdp prints its layout and exits 1 on every graph; overlap=prism is ignored with a warning; overlap=false falls back to another method with no message.
  • No IPSEPCOLA: mode=ipsep is ignored with a warning.
  • No pango or cairo: text is measured by Graphviz's own estimate; no cairo format.
  • No gd, no zlib, no plugin beyond the built-in ones: their formats are refused.
  • The formats and engines the build does offer, and the seeded-layout difference on windows.

🧪 How

Run on the dot 16.1.1 of release v0.4.0, darwin-arm64:

  • echo 'graph { a }' | dot -Ksfdp -Tplain: Error: remove_overlap: Graphviz not built with triangulation library, the layout, exit 1.
  • -Goverlap=prism with neato and fdp: Warning: Overlap value "prism" unsupported - ignored, exit 0.
  • -Kneato -Gmode=ipsep: Warning: Illegal value ipsep for attribute "mode" in graph %1 - ignored, exit 0.
  • -Tsvgz: Format: "svgz" not recognized. Use one of: …, exit 1; that list and the -K list are the ones the README gives.

Not run, taken from Graphviz's documentation: that overlap=false uses another method than Prism without the library, and that node sizes differ from a build with pango. That GTS is the only triangulation library Graphviz 16.1.1 takes is from its lib/neatogen/delaunay.c and cmake/FindGTS.cmake.

📝 Notes

No code, build or test changes.

The build takes no library but expat, and nothing in the repository said
what that costs a caller: sfdp exits 1 on every graph for want of the
triangulation library, overlap=prism and mode=ipsep are ignored with a
warning, overlap=false removes overlaps by another method with no
message, text is measured without pango, and the formats of zlib, cairo,
gd and the plugins are refused. config.h named zlib, pango, cairo, gd and
ltdl only. Each case was observed on the 16.1.1 binary of v0.4.0.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Signed-off-by: closer-claudio <claudio@farcloser.world>
@closer-claudio closer-claudio added the internal Changes nothing for a consumer: tooling, CI, maintainers' docs; left out of the notes label Nov 21, 2026
@closer-claudio

Copy link
Copy Markdown
Contributor Author

Reviewed at cd4d160

@closer-claudio
closer-claudio merged commit bd3872d into main Nov 21, 2026
27 checks passed
@closer-claudio
closer-claudio deleted the claudio/20261121-left-out branch November 21, 2026 23:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

internal Changes nothing for a consumer: tooling, CI, maintainers' docs; left out of the notes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants