Skip to content

Commit

Permalink
fixed children
Browse files Browse the repository at this point in the history
  • Loading branch information
zsunberg committed Apr 4, 2018
1 parent fcb8bfd commit 578b74e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/D3Trees.jl
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ struct D3TreeNode
end

AbstractTrees.children(n::D3TreeNode) = (D3TreeNode(n.tree, c) for c in n.tree.children[n.index])
AbstractTrees.children(t::D3Tree) = children(D3TreeNode(t, c) for c in t.children[1])
AbstractTrees.children(t::D3Tree) = children(D3TreeNode(t, 1))
n_children(n::D3TreeNode) = length(n.tree.children[n.index])
AbstractTrees.printnode(io::IO, n::D3TreeNode) = print(io, n.tree.text[n.index])

Expand Down

0 comments on commit 578b74e

Please sign in to comment.