dag

package
v0.11.1 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2023 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Graph

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

func NewGraph

func NewGraph() *Graph

func (*Graph) AddEdge

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

func (*Graph) AddNode

func (g *Graph) AddNode(name string) error

func (*Graph) AddNodes

func (g *Graph) AddNodes(names ...string) error

func (*Graph) GetParents

func (g *Graph) GetParents(id string) []string

func (*Graph) GetRoot

func (g *Graph) GetRoot() (string, error)

func (*Graph) Toposort

func (g *Graph) Toposort() ([]string, error)

Jump to

Keyboard shortcuts

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