We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5813d29 commit bf65227Copy full SHA for bf65227
1 file changed
src/Trees/abstracttree.jl
@@ -28,7 +28,7 @@ end
28
29
Return `true` if `t` is its own parent.
30
"""
31
-function isroot(t::AbstractTree)
+function isroot(t)
32
parent(t) == t
33
end
34
@@ -49,7 +49,7 @@ Recursive function to compute the depth of `node` in a a tree-like structure.
49
Overload this function if your structure has a more efficient way to compute
50
`depth` (e.g. if it stores it in a field).
51
52
-function depth(tree::AbstractTree,acc=0)
+function depth(tree,acc=0)
53
if isroot(tree)
54
return acc
55
else
0 commit comments