export

package
v0.0.0-...-920ce19 Latest Latest
Warning

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

Go to latest
Published: May 6, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

Package export provides graph export in various formats.

Index

Constants

This section is empty.

Variables

View Source
var CommunityColors = []string{
	"#4E79A7", "#F28E2B", "#E15759", "#76B7B2", "#59A14F",
	"#EDC948", "#B07AA1", "#FF9DA7", "#9C755F", "#BAB0AC",
}

CommunityColors is a 10-color palette for community visualization.

Functions

func ToCypher

func ToCypher(g *graph.Graph, outputPath string) error

ToCypher writes Neo4j Cypher CREATE statements for importing the graph.

func ToGraphML

func ToGraphML(g *graph.Graph, communities map[int][]string, outputPath string) error

ToGraphML writes the graph in GraphML XML format with community attributes.

func ToHTML

func ToHTML(g *graph.Graph, communities map[int][]string, communityLabels map[int]string, outputPath string) error

ToHTML generates an interactive vis.js HTML visualization.

func ToJSON

func ToJSON(g *graph.Graph, outputPath string, force bool) (bool, error)

ToJSON writes the graph to a JSON file in NetworkX node_link_data format. Returns true if the file was written, false if it already exists and force is false.

func ToObsidian

func ToObsidian(g *graph.Graph, communities map[int][]string, communityLabels map[int]string, cohesionScores map[int]float64, outputPath string) error

ToObsidian generates an Obsidian vault with one markdown file per node and community overview pages.

Types

This section is empty.

Jump to

Keyboard shortcuts

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