graph

package
v0.0.0-...-b2afd5d Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2024 License: Apache-2.0 Imports: 7 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DependencyGraph

type DependencyGraph struct {
	Fs               afero.Fs
	NodeDependencies map[string][]string
	DependencyGraph  []string
	VisitedPaths     map[string]bool
	Logger           *log.Logger
}

func NewDependencyGraph

func NewDependencyGraph(fs afero.Fs, logger *log.Logger, dependencies map[string][]string) *DependencyGraph

func (*DependencyGraph) BuildDependencyStack

func (dg *DependencyGraph) BuildDependencyStack(node string, visited map[string]bool) []string

func (*DependencyGraph) ConstructDependencyPath

func (dg *DependencyGraph) ConstructDependencyPath(path []string, dir string) string

func (*DependencyGraph) InvertDependencies

func (dg *DependencyGraph) InvertDependencies() map[string][]string

func (*DependencyGraph) ListDependenciesRecursive

func (dg *DependencyGraph) ListDependenciesRecursive(node string, path []string, visited map[string]bool)

func (*DependencyGraph) ListDependencyTree

func (dg *DependencyGraph) ListDependencyTree(node string)

func (*DependencyGraph) ListDependencyTreeTopDown

func (dg *DependencyGraph) ListDependencyTreeTopDown(node string)

func (*DependencyGraph) ListDirectDependencies

func (dg *DependencyGraph) ListDirectDependencies(node string)

func (*DependencyGraph) ListReverseDependencies

func (dg *DependencyGraph) ListReverseDependencies(node string)

func (*DependencyGraph) PrintDependencyPath

func (dg *DependencyGraph) PrintDependencyPath(path string)

func (*DependencyGraph) TraverseDependencyGraph

func (dg *DependencyGraph) TraverseDependencyGraph(node string, dependencies map[string][]string, visited map[string]bool)

Jump to

Keyboard shortcuts

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