Class: CompSci::QuaternaryTree
- Defined in:
- lib/compsci/tree.rb
Instance Attribute Summary
Attributes inherited from NaryTree
Attributes inherited from Tree
Instance Method Summary collapse
-
#initialize(node_class, val) ⇒ QuaternaryTree
constructor
A new instance of QuaternaryTree.
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 |