paths

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2025 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsCycle

func IsCycle(path []*vertexes.Vertexes) bool

IsCycle returns true if the nodes form a cycle

func IsPath

func IsPath(path []*vertexes.Vertexes) bool

IsPath returns true if the nodes form a path

Types

type Paths added in v0.0.13

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

func NewPath

func NewPath(maxLen int) Paths

func (*Paths) Contains added in v0.0.13

func (p *Paths) Contains(node vertexes.Vertexes) bool

func (*Paths) Get added in v0.0.13

func (p *Paths) Get() []*vertexes.Vertexes

func (*Paths) Len added in v0.0.13

func (p *Paths) Len() int

func (*Paths) Pop added in v0.0.13

func (p *Paths) Pop() (*vertexes.Vertexes, int)

func (*Paths) PopAndTrack added in v0.0.13

func (p *Paths) PopAndTrack() (*vertexes.Vertexes, int)

func (*Paths) Push added in v0.0.13

func (p *Paths) Push(node *vertexes.Vertexes, depth int)

func (*Paths) PushAndTrack added in v0.0.13

func (p *Paths) PushAndTrack(node *vertexes.Vertexes, depth int)

func (*Paths) Reset added in v0.0.13

func (p *Paths) Reset()

Jump to

Keyboard shortcuts

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