graph

package
v0.0.0-...-9c8d8c7 Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2023 License: Apache-2.0 Imports: 3 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 {
	Vertex int
	Adj    map[*resource.Release][]*resource.Release
}

*

  • 有向无环图,使用 kana 算法实现它的拓扑排序

func NewReleaseGraph

func NewReleaseGraph(rls []*resource.Release) *Graph

func (*Graph) AddEdges

func (g *Graph) AddEdges(from, to *resource.Release)

func (*Graph) AddVertex

func (g *Graph) AddVertex(r *resource.Release)

func (*Graph) String

func (g *Graph) String()

func (*Graph) TopoSortByKahn

func (g *Graph) TopoSortByKahn() *queue.QueueRelease

Jump to

Keyboard shortcuts

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