package
Version:
v0.1.2
Opens a new window with list of versions in this module.
Published: Feb 9, 2026
License: MIT
Opens a new window with license information.
Imports: 8
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type DAG struct {
Nodes []Node `json:"nodes"`
Edges []Edge `json:"edges"`
}
DAG represents a dependency graph between segments.
Build constructs a DAG from segments by detecting cross-references.
ExportDOT exports the DAG as a Graphviz DOT string.
ExportIndexMarkdown exports a Markdown index listing all segments
and their dependencies. filenames[i] is the filename for node i.
ExportJSON exports the DAG as JSON.
type Edge struct {
From int `json:"from"`
To int `json:"to"`
Type string `json:"type"`
}
Edge represents a dependency between segments.
type Node struct {
ID int `json:"id"`
Label string `json:"label"`
Anchors []string `json:"anchors,omitempty"`
}
Node represents a segment in the DAG.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.