depth

fun depth(): Int(source)

Distance is the number of edges along the shortest path between two nodes.

Return

The distance between current node and the root.