Main Content

treeord

    Description

    treeord is a tree-management utility.

    ord = treeord(t) returns the order of the tree t.

    example

    Examples

    collapse all

    Create a tree of order 3 and depth 2.

    t = ntree(3,2);

    Plot the tree.

    plot(t)

    Figure contains an axes object and an object of type uimenu. The axes object with title Tree Decomposition contains 25 objects of type line, text.

    Use the treeord function to obtain the tree order.

    ord = treeord(t)
    ord = 
    3
    

    Input Arguments

    collapse all

    Tree, specified as an ntree, dtree, or wptree object.

    Version History

    Introduced before R2006a

    See Also