ParentEdgeStyleFunction
Treeおよび関連関数のオプションで,辺のスタイルを生成する関数を指定する.
詳細

- ParentEdgeStyleFunctionを使うと木の根のノードの親の辺のスタイルおよびパターンにマッチする位置にある任意の部分木のスタイルを生成する関数が指定できる.
- 次は,使用可能なオプション設定である.
-
Automatic 自動スタイルを使う func 一般的な辺スタイル関数 » Allfunc すべての辺にスタイル関数 func を使う » TreeCases[pattern]func pattern にマッチするデータのノードの辺に func を使う » "Leaves"func 葉の辺に func を使う » "NonLeaves"func 葉以外の辺に func を使う » {pos1func1,pos2func2,…} funciを相対位置 posiの辺に使う » {patt1func1,patt2func2,…} pattiにマッチする位置の辺に funciを使う » - 辺のスタイル指定は,事実上,ParentEdgeStyle,ParentEdgeStyleFunction,ParentEdgeShapeFunctionの順に適用され,後の指定が先の指定をオーバーライドする.
- ParentEdgeStyleFunctionfunc は根ノードの親の辺のスタイルを func[data]が与えるものにするように指定する.ここで,data は根のデータである.
例題
すべて開く すべて閉じる関連するガイド
-
▪
- 木構造の可視化
テキスト
Wolfram Research (2022), ParentEdgeStyleFunction, Wolfram言語関数, https://reference.wolfram.com/language/ref/ParentEdgeStyleFunction.html.
CMS
Wolfram Language. 2022. "ParentEdgeStyleFunction." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/ParentEdgeStyleFunction.html.
APA
Wolfram Language. (2022). ParentEdgeStyleFunction. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/ParentEdgeStyleFunction.html
BibTeX
@misc{reference.wolfram_2025_parentedgestylefunction, author="Wolfram Research", title="{ParentEdgeStyleFunction}", year="2022", howpublished="\url{https://reference.wolfram.com/language/ref/ParentEdgeStyleFunction.html}", note=[Accessed: 17-September-2025]}
BibLaTeX
@online{reference.wolfram_2025_parentedgestylefunction, organization={Wolfram Research}, title={ParentEdgeStyleFunction}, year={2022}, url={https://reference.wolfram.com/language/ref/ParentEdgeStyleFunction.html}, note=[Accessed: 17-September-2025]}