anthill

package
v0.0.0-...-dec46cf Latest Latest
Warning

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

Go to latest
Published: May 11, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FIELD_ANTS  = iota // On Reading Ants
	FIELD_ROOMS        // On Reading Rooms
	FIELD_PATHS        // On Reading Paths | Relations
)

Modes for FieldInfo

View Source
const (
	REVERSED = -1 // directed, REVERSED path (from end to start)
	BLOCKED  = 0  // blocked path (from start to end)
	STABLE   = 1  // double directed path
)

Modes for Path

Variables

This section is empty.

Functions

func CreateAnthill

func CreateAnthill() *anthill

CreateAnthill - returns anthill by default data

Types

type Result

type Result struct {
	AntsCount int
	Paths     []*list
}

The found paths are saved in Result. Using for write result to writer

func (*Result) WriteResult

func (r *Result) WriteResult(w io.Writer)

WriteResult - write result with writer

Jump to

Keyboard shortcuts

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