graph

package
v0.7.17 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2026 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateMermaid

func GenerateMermaid(nodes []domain.Node, overlay *GraphOverlay) string

GenerateMermaid produces a Mermaid flowchart syntax string from a list of nodes. It applies semantic styling: - Start: ((Circle)) - Tool: [[Subroutine]] - Input (Question/Prompt): [/Parallelogram/] - Default: [Rectangle] It also applies overlay styles (Visited/Current) if provided.

Types

type GraphOverlay added in v0.6.0

type GraphOverlay struct {
	VisitedNodes []string
	CurrentNode  string
}

GraphOverlay contains dynamic state data to visualize on the graph.

Jump to

Keyboard shortcuts

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