编程语言/二叉树:修订间差异
来自康健生活
无编辑摘要 |
|||
| 第81行: | 第81行: | ||
digraph binaryTree{ | digraph binaryTree{ | ||
node[shape=circle,color=red,fontcolor=blue,fontsize=10]; | node[shape=circle,color=red,fontcolor=blue,fontsize=10]; | ||
'node'[color=blue,fontcolor=black,fontsize=10]; | |||
node [shape=record]; | node [shape=record]; | ||
struct1 [label="<f0> parent|<f1> leftChild|<f2> rightChild"]; | struct1 [label="<f0> parent|<f1> leftChild|<f2> rightChild"]; | ||
| 第90行: | 第90行: | ||
node[shape=none,color=red,fontcolor=blue,fontsize=10]; | node[shape=none,color=red,fontcolor=blue,fontsize=10]; | ||
rightChild[color=blue,fontcolor=black,fontsize=10]; | rightChild[color=blue,fontcolor=black,fontsize=10]; | ||
'node'->parent; | |||
'node'->leftChild; | |||
'node'->rightChild; | |||
} | } | ||
</graphviz> | </graphviz> | ||