dagv2

package
v0.0.1-alpha Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AcyclicGraph

type AcyclicGraph[T comparable] struct {
	Vertices syncmap.Map
	Edges    syncmap.Map
}

func Clone

func Clone[T comparable](g *AcyclicGraph[T]) *AcyclicGraph[T]

func (*AcyclicGraph[T]) AddEdge

func (g *AcyclicGraph[T]) AddEdge(from, to T)

func (*AcyclicGraph[T]) AddVertex

func (g *AcyclicGraph[T]) AddVertex(v T)

func (*AcyclicGraph[T]) TopologicalSort

func (g *AcyclicGraph[T]) TopologicalSort(sortFunc SortFunc[T]) (result []T)

func (*AcyclicGraph[T]) TransitiveReduction

func (g *AcyclicGraph[T]) TransitiveReduction(target T) AcyclicGraph[T]

func (*AcyclicGraph[T]) Validate

func (g *AcyclicGraph[T]) Validate() error

func (*AcyclicGraph[T]) Walk

func (g *AcyclicGraph[T]) Walk(target T, visitor WalkFunc[T])

type SortFunc

type SortFunc[T any] func(a T, b T) bool

type WalkFunc

type WalkFunc[T any] func(T)

Jump to

Keyboard shortcuts

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