Versions in this module Expand all Collapse all v1 v1.3.0 Sep 27, 2026 Changes in this version + func DefaultOptions(fallback Renderer) *options + type ASCII struct + Color bool + func (ASCII) ContentType() string + func (a ASCII) Render(w io.Writer, g Graph) error + type Cluster struct + Label string + Nodes []Node + type DOT struct + func (DOT) ContentType() string + func (DOT) Render(w io.Writer, g Graph) error + type Edge struct + From int + Style Style + To int + type Graph struct + Clusters []Cluster + Edges []Edge + Name string + Nodes []Node + type HTML struct + Title string + func (HTML) ContentType() string + func (h HTML) Render(w io.Writer, g Graph) error + type Node struct + ID int + Label string + Style Style + type Option func(*options) + func WithRenderer(r Renderer) Option + type Renderer interface + ContentType func() string + Render func(w io.Writer, g Graph) error + type Style uint8 + const Dashed + const Highlighted + const Solid