IsRoot determines if the chart is the root chart.
()
| 107 | |
| 108 | // IsRoot determines if the chart is the root chart. |
| 109 | func (ch *Chart) IsRoot() bool { return ch.parent == nil } |
| 110 | |
| 111 | // Parent returns a subchart's parent chart. |
| 112 | func (ch *Chart) Parent() *Chart { return ch.parent } |
no outgoing calls