Class: CompSci::QuaternaryTree

Inherits:
NaryTree show all
Defined in:
lib/compsci/tree.rb

Instance Attribute Summary

Attributes inherited from NaryTree

#child_slots

Attributes inherited from Tree

#root

Instance Method Summary collapse

Methods inherited from NaryTree

#display, #open_parent, #open_parent?, #open_sibling, power_of?, #push

Methods inherited from Tree

#bf_search, #df_search, #df_search_generic

Constructor Details

#initialize(node_class, val) ⇒ QuaternaryTree

Returns a new instance of QuaternaryTree.



138
139
140
# File 'lib/compsci/tree.rb', line 138

def initialize(node_class, val)
  super(node_class, val, child_slots: 4)
end