graphs

package
v3.0.2+incompatible Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2019 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GraphItem

type GraphItem struct {
	// contains filtered or unexported fields
}

func (*GraphItem) AddEdge

func (g *GraphItem) AddEdge(nLeft, nRight *Node)

func (*GraphItem) AddNode

func (g *GraphItem) AddNode(n *Node)

func (*GraphItem) Queue

func (g *GraphItem) Queue(pkg *models.Package, allDeps bool) NodeQueue

func (*GraphItem) String

func (g *GraphItem) String()

type Node

type Node struct {
	Value string
	Dep   models.Dependency
}

func NewNode

func NewNode(dependency *models.Dependency) *Node

func (*Node) String

func (n *Node) String() string

type NodeQueue

type NodeQueue struct {
	// contains filtered or unexported fields
}

func (*NodeQueue) Dequeue

func (s *NodeQueue) Dequeue() *Node

func (*NodeQueue) Enqueue

func (s *NodeQueue) Enqueue(t Node)

func (*NodeQueue) Front

func (s *NodeQueue) Front() *Node

func (*NodeQueue) IsEmpty

func (s *NodeQueue) IsEmpty() bool

func (*NodeQueue) New

func (s *NodeQueue) New() *NodeQueue

func (*NodeQueue) Size

func (s *NodeQueue) Size() int

Jump to

Keyboard shortcuts

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