export

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2026 License: MIT Imports: 15 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 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