overview

package
v0.0.38 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Reverse

func Reverse[T any](ss []T)

Types

type DependencyGraph

type DependencyGraph struct {
	*Graph
}

func NewDependencyGraph

func NewDependencyGraph(project *configurations.Project) (*DependencyGraph, error)

func (*DependencyGraph) Edges

func (g *DependencyGraph) Edges() []Edge

func (*DependencyGraph) Nodes

func (g *DependencyGraph) Nodes() []string

type Edge

type Edge struct {
	From string
	To   string
}

type Graph

type Graph struct {
	Name  string
	Nodes map[string]bool
	Edges map[string][]string
}

func Load

func Load(project *configurations.Project) (*Graph, error)

func NewGraph

func NewGraph(name string) *Graph

func (*Graph) AddEdge

func (g *Graph) AddEdge(u, v string)

func (*Graph) AddNode

func (g *Graph) AddNode(u string)

func (*Graph) TopologicalSort

func (g *Graph) TopologicalSort() []string

Jump to

Keyboard shortcuts

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