メインコンテンツ

treeord

    説明

    treeord はツリー管理ユーティリティです。

    ord = treeord(t) はツリー t の次数を返します。

    すべて折りたたむ

    次数 3、深さ 2 のツリーを作成します。

    t = ntree(3,2);

    ツリーをプロットします。

    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.

    関数 treeord を使用して、ツリーの次数を取得します。

    ord = treeord(t)
    ord = 
    3
    

    入力引数

    すべて折りたたむ

    ツリー。ntree オブジェクト、dtree オブジェクト、または wptree オブジェクトとして指定します。

    バージョン履歴

    R2006a より前に導入

    参考