Documentation
¶
Overview ¶
Package export writes the assembled graph to disk. graph.json is the primary artifact (committed by CI, read by the query commands and the Claude skill); it uses the same NetworkX node-link shape as the Python original so existing tooling keeps working. graph.html is a small optional viewer for humans.
Index ¶
- func CSVFromJSON(jsonPath, nodesPath, edgesPath string) error
- func CallflowFromJSON(jsonPath, outPath string) error
- func DOTFromJSON(jsonPath, outPath string) error
- func GraphMLFromJSON(jsonPath, outPath string) error
- func ToHTML(g *model.Graph, communities map[int][]string, outPath string) error
- func ToJSON(g *model.Graph, communities map[int][]string, path, builtAtCommit string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CSVFromJSON ¶ added in v0.3.0
CSVFromJSON writes the graph's nodes and edges to two CSV files.
func CallflowFromJSON ¶ added in v0.3.0
func DOTFromJSON ¶ added in v0.3.0
DOTFromJSON writes the graph at jsonPath to outPath as a Graphviz digraph.
func GraphMLFromJSON ¶ added in v0.3.0
GraphMLFromJSON writes the graph at jsonPath to outPath as GraphML.
func ToHTML ¶
ToHTML writes a self-contained vis-network viewer. The layout solves off-screen (avoidOverlap separates clusters) and is shown already settled and frozen — no spinning, no perpetual jitter. A search box and click-to-inspect panel (with neighbours grouped by relation) make the graph navigable, mirroring the Python original. Large graphs open on a named community overview and drill into a community's node-level subgraph on click.
Types ¶
This section is empty.