graph

package
v0.0.0-...-54d1b5e Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2022 License: Apache-2.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 Edges

type Edges map[string]Node

type Graph

type Graph struct {
	Nodes map[string]Node
	// contains filtered or unexported fields
}

func (*Graph) AddEdge

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

func (*Graph) AddNode

func (g *Graph) AddNode(node Node)

func (*Graph) Append

func (g *Graph) Append(other *Graph) (*Graph, error)

func (*Graph) Contains

func (g *Graph) Contains(node string) bool

func (*Graph) TopologySort

func (g *Graph) TopologySort() []Node

type Node

type Node struct {
	Name    string
	Edges   Edges
	Command string
	File    string
}

type Visited

type Visited map[string]bool

Jump to

Keyboard shortcuts

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