Documentation
¶
Overview ¶
Package linear provides common linear data structures.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NodeQueue ¶
type NodeQueue struct {
// contains filtered or unexported fields
}
NodeQueue implements a FIFO queue.
func (*NodeQueue) Dequeue ¶
func (q *NodeQueue) Dequeue() graph.Node
Dequeue returns the graph.Node at the front of the queue and removes it from the queue.
func (*NodeQueue) Enqueue ¶
func (q *NodeQueue) Enqueue(n graph.Node)
Enqueue adds the node n to the back of the queue.
type NodeStack ¶
type NodeStack []graph.Node
NodeStack implements a LIFO stack of graph.Node.
func (*NodeStack) Len ¶
func (s *NodeStack) Len() int
Len returns the number of graph.Nodes on the stack.
Click to show internal directories.
Click to hide internal directories.