# Enumeration TreePath

GoJS® Diagramming Components
version 3.0.5
by Northwoods Software®

This enumeration specifies how to build a tree from the TreeNetwork. Used for TreeLayout.path.

`since`

3.0

#####
Index

### Enumeration Members

Default
Destination
Source

## Enumeration Members

### Default

Causes the value of Diagram.isTreePathToChildren to effectively choose either Destination (if true) or Source (if false).

### Destination

The children of a TreeVertex are its LayoutVertex.destinationVertexes, the collection of connected LayoutEdge.toVertexes.

The tree roots are those TreeVertexes that have zero source edges.

### Source

The children of a TreeVertex are its LayoutVertex.sourceVertexes, the collection of connected LayoutEdge.fromVertexes.

The tree roots are those TreeVertexes that have zero destination edges.

Copyright © 1998-2024 by Northwoods Software Corporation.