graph

package
v0.2.8 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2022 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Func added in v0.2.8

type Func struct {
	Length  int // length should be static
	GetFunc func(i int) NodeI
}

func (Func) Get added in v0.2.8

func (fn Func) Get(i int) NodeI

func (Func) Len added in v0.2.8

func (fn Func) Len() int

type Graph

type Graph []LayerI

func (Graph) Get

func (g Graph) Get(i int) LayerI

func (Graph) Len

func (g Graph) Len() int

type GraphI added in v0.2.8

type GraphI interface {
	Len() int
	Get(i int) LayerI
}

GraphI is a list of LayerIs

type Iter

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

func NewIter

func NewIter(g GraphI, reverse bool) *Iter

func (*Iter) Get

func (iter *Iter) Get() []NodeI

func (*Iter) Next

func (iter *Iter) Next() bool

type Layer added in v0.2.8

type Layer []NodeI

func (Layer) Get added in v0.2.8

func (l Layer) Get(i int) NodeI

func (Layer) Len added in v0.2.8

func (l Layer) Len() int

type LayerI added in v0.2.8

type LayerI interface {
	Len() int
	Get(i int) NodeI
}

LayerI is a list of NodeI

type NodeI

type NodeI interface{}

type NumberRange added in v0.2.8

type NumberRange struct {
	From   int // inclusive
	Length int
}

func (NumberRange) Get added in v0.2.8

func (nr NumberRange) Get(i int) NodeI

func (NumberRange) Len added in v0.2.8

func (nr NumberRange) Len() int

Jump to

Keyboard shortcuts

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