Documentation
¶
Index ¶
- type Node
- func (n *Node[T]) AddNext(node *Node[T])
- func (n *Node[T]) Backtrack() []*Node[T]
- func (n *Node[T]) GetData() T
- func (n *Node[T]) GetID() int
- func (n *Node[T]) GetNexts() []*Node[T]
- func (n *Node[T]) GetPrevious() *Node[T]
- func (n *Node[T]) GetStructure() []string
- func (n *Node[T]) IsLeaf() bool
- func (n *Node[T]) IsRoot() bool
- func (n *Node[T]) WithID(id int) *Node[T]
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Node ¶
type Node[T any] struct { // contains filtered or unexported fields }
nolint:structcheck,gocritic Node is the base of Tree construction.
func (*Node[T]) GetPrevious ¶
GetPrevious retrieves the next nodes.
func (*Node[T]) GetStructure ¶
GetStructure retrieves the node structure.
Click to show internal directories.
Click to hide internal directories.