topo

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2022 License: MIT Imports: 1 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 New

func New() *Graph

func (*Graph) AddEdge

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

func (*Graph) AddNode

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

func (*Graph) AddNodes

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

func (*Graph) Clone

func (g *Graph) Clone() *Graph

func (*Graph) RemoveEdge

func (g *Graph) RemoveEdge(from, to string) bool

func (*Graph) Roots

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

func (*Graph) TopologicalSort

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

Jump to

Keyboard shortcuts

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