graph

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2026 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EntityGraph

type EntityGraph struct {
	Nodes    map[Node]*Node
	Parents  map[Node][]*Node
	Children map[Node][]*Node
}

func BuildGraph

func BuildGraph(reader adapters.Reader) (*EntityGraph, error)

BuildGraph .

func NewEntityGraph

func NewEntityGraph() *EntityGraph

func (*EntityGraph) AddEdge

func (eg *EntityGraph) AddEdge(n1, n2 *Node) bool

func (*EntityGraph) AddNode

func (eg *EntityGraph) AddNode(n *Node) (*Node, bool)

func (*EntityGraph) Node

func (eg *EntityGraph) Node(n *Node) (*Node, bool)

func (*EntityGraph) Search

func (eg *EntityGraph) Search(queue []*Node, up bool, f func(*Node))

type Node

type Node struct {
	Filename string
	ID       string
}

func NewNode

func NewNode(filename, id string) *Node

Jump to

Keyboard shortcuts

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