Jump to content

Template:Tree traversal demo/doc

From Wikipedia, the free encyclopedia

This is an interactive demo of Tree traversal meant for usage on that page.

You can use noselectmethod parameter and the method parameter to force a specific order method. e.g. {{Tree traversal demo|method=Level-order|noselectmethod=1|caption=Interactive breadth-first search demonstration}} if you just want to display BFS.

Usage

[edit]

Tree traversal demo

Template parameters

ParameterDescriptionTypeStatus
captioncaption

Text to show as caption

Contentoptional
noselectmethodnoselectmethod

Do not show a drop down to change what method of traversal is used

Booleanoptional
methodmethod

Which method to start at initially

Suggested values
Pre-order Post-order In-order Level-order Reverse pre-order Reverse In-order Reverse post-order
Default
Pre-order
Stringoptional