I am having difficulty getting my head around the indexed tree interface. I have a small package RangeTrees.jl that creates interval trees in what I think is the indexed tree form. A RangeTree{T} consists of a Vector{RangeNode{T}} and the index of the root node in that vector. Each RangeNode contains the indexes of its left and right child nodes with the convention that a zero index indicates there is no node on that side.
If someone (@ExpandingMan @ararslan ?) can describe for me what AbstractTrees methods I should implement for RangeTree in my package, I will create a documentation PR for the index tree interface.
I am having difficulty getting my head around the indexed tree interface. I have a small package RangeTrees.jl that creates interval trees in what I think is the indexed tree form. A
RangeTree{T}consists of aVector{RangeNode{T}}and the index of the root node in that vector. EachRangeNodecontains the indexes of its left and right child nodes with the convention that a zero index indicates there is no node on that side.If someone (@ExpandingMan @ararslan ?) can describe for me what
AbstractTreesmethods I should implement forRangeTreein my package, I will create a documentation PR for the index tree interface.