dag

package
v0.0.0-...-6f0bcb7 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2023 License: Apache-2.0 Imports: 4 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DAG

type DAG interface {
	AddVertex(s string, v any) error
	Connect(from, to string)
	AddDownEdge(from, to string)
	AddUpEdge(from, to string)
	VertexExists(s string) bool
	GetVertex(s string) any
	GetVertices() map[string]any
	GetDownVertexes(from string) []string
	GetUpVertexes(from string) []string
	TransitiveReduction()
}

func New

func New() DAG

type Edge

type Edge struct {
	From string
	To   string
}

used for returning

type WalkConfig

type WalkConfig struct {
	WalkInitFn  WalkInitFn
	WalkEntryFn WalkEntryFn
}

type WalkEntryFn

type WalkEntryFn func(from string, depth int)

type WalkInitFn

type WalkInitFn func()

Jump to

Keyboard shortcuts

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