export

package
v0.4.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 9, 2026 License: MIT Imports: 17 Imported by: 0

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

Constants

This section is empty.

Variables

This section is empty.

Functions

func CSVFromJSON added in v0.3.0

func CSVFromJSON(jsonPath, nodesPath, edgesPath string) error

CSVFromJSON writes the graph's nodes and edges to two CSV files.

func CallflowFromJSON added in v0.3.0

func CallflowFromJSON(jsonPath, outPath string) error

func DOTFromJSON added in v0.3.0

func DOTFromJSON(jsonPath, outPath string) error

DOTFromJSON writes the graph at jsonPath to outPath as a Graphviz digraph.

func GraphMLFromJSON added in v0.3.0

func GraphMLFromJSON(jsonPath, outPath string) error

GraphMLFromJSON writes the graph at jsonPath to outPath as GraphML.

func ToHTML

func ToHTML(g *model.Graph, communities map[int][]string, outPath string) error

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.

func ToJSON

func ToJSON(g *model.Graph, communities map[int][]string, path, builtAtCommit string) error

ToJSON writes the graph to path in NetworkX node-link format with per-node community/norm_label and per-link confidence_score, plus the commit it was built from (for staleness checks).

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL