class

Graphlb::DataStructures::Queue(A)

Inherits Reference / Object

A Queue Data Structure formed using an Array A Queue follows Last-in-First-out

Constructors

new

Initializes the Queue with empty

Source

Instance methods

empty?

returns true if the Queue is empty

Source
pop

pops the value that is first inserted

Source
push(val)

pushes the value present inside the val into the Queue

Source
top

returns the first-most element in the queue

Source
values

returns all the values that are present in the Queue

Source