export

package
v0.7.1-beta.18 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2026 License: MIT Imports: 16 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.

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 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 OKFFromJSON added in v0.6.0

func OKFFromJSON(jsonPath, outDir string) error

OKFFromJSON writes an OKF bundle for the graph at jsonPath into outDir.

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