graph

package
v2.0.3 Latest Latest
Warning

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

Go to latest
Published: May 19, 2026 License: GPL-3.0 Imports: 0 Imported by: 0

Documentation

Overview

Package graph provides core graph data structures and types for dependency visualization.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bounds

type Bounds struct {
	MinX, MinY, MaxX, MaxY float64
	Width, Height          float64
	Padding                float64
}

Bounds represents the calculated dimensions for the graph.

type Data

type Data struct {
	Nodes map[string]*Node
	Edges []Edge
	Theme Theme
}

Data represents the complete graph structure.

type Edge

type Edge struct {
	From string
	To   string
	Type string // "runtime", "make", "check", "opt"
}

Edge represents a dependency relationship between packages.

type Node

type Node struct {
	Name          string
	PkgName       string // Actual package name from PKGBUILD
	Version       string
	Release       string
	X, Y          float64
	Width, Height float64 // Dynamic node dimensions
	IsExternal    bool
	IsPopular     bool
	Dependencies  []string
	Level         int
}

Node represents a package in the dependency graph.

type Theme

type Theme struct {
	Background   string
	NodeInternal string
	NodeExternal string
	NodePopular  string
	EdgeRuntime  string
	EdgeMake     string
	EdgeCheck    string
	EdgeOptional string
	TextColor    string
	BorderColor  string
	GridColor    string
}

Theme represents the visual styling configuration.

Directories

Path Synopsis
Package layout provides graph layout algorithms for positioning nodes.
Package layout provides graph layout algorithms for positioning nodes.
Package loader provides functionality to load and parse project configurations for graph generation.
Package loader provides functionality to load and parse project configurations for graph generation.
Package render provides rendering functionality for dependency graphs.
Package render provides rendering functionality for dependency graphs.
Package theme provides visual styling configurations for dependency graphs.
Package theme provides visual styling configurations for dependency graphs.

Jump to

Keyboard shortcuts

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