Class: DfsTreePrintVisitor

Inherits:
TreePrintVisitor show all
Defined in:
lib/visitor/tree_print_visitor.rb

Constant Summary

Constants inherited from TreePrintVisitor

TreePrintVisitor::ALL_LEVELS

Instance Method Summary collapse

Methods inherited from TreePrintVisitor

#initialize, #postVisit, #preVisit

Constructor Details

This class inherits a constructor from TreePrintVisitor

Instance Method Details

#nodeToStr(node) ⇒ Object



35
36
37
# File 'lib/visitor/tree_print_visitor.rb', line 35

def nodeToStr(node)
  "#{node.dfsNumber} #{node.suffixOffset}, #{node.runTail.binaryTreeHeight}/#{node.runTail.dfsNumber} #{super}"
end