Skip to content

Add implementation for covering/enveloped? #91

Open
@johann-petrak

Description

@johann-petrak

Would it be possible to make use of the interval tree to efficiently return all intervals which contain a given interval.

So "tree.covering(from, to)" would return all intervals i in the tree for which:
i.start <= from and i.end >= to

This can be achieved indirectly in various ways, but depending on how intervals are present in the tree, the overhead may perhaps be bigger than if using the interval tree directly?

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions