graph

package
v1.10.0 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package graph provides DAG graph generation for pipeline visualization.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Edge

type Edge struct {
	From string
	To   string
}

Edge represents a directed edge between two nodes.

type Graph

type Graph struct {
	// contains filtered or unexported fields
}

Graph represents a directed acyclic graph of pipeline jobs.

func New

func New() *Graph

New creates a new empty Graph.

func (*Graph) AddEdge

func (g *Graph) AddEdge(from, to string)

AddEdge adds a directed edge from one node to another.

func (*Graph) AddNode

func (g *Graph) AddNode(name, stage string)

AddNode adds a node to the graph.

func (*Graph) DOT

func (g *Graph) DOT(cluster bool) string

DOT generates a Graphviz DOT format representation of the graph.

func (*Graph) Edges

func (g *Graph) Edges() []Edge

Edges returns all edges in the graph.

func (*Graph) Mermaid

func (g *Graph) Mermaid(cluster bool) string

Mermaid generates a Mermaid diagram representation of the graph.

func (*Graph) Nodes

func (g *Graph) Nodes() []Node

Nodes returns all nodes in the graph.

type Node

type Node struct {
	Name  string
	Stage string
}

Node represents a job node in the dependency graph.

Jump to

Keyboard shortcuts

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