Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get overlapping boundaries in tree #111

Open
guillemcortes opened this issue Nov 4, 2021 · 0 comments
Open

Get overlapping boundaries in tree #111

guillemcortes opened this issue Nov 4, 2021 · 0 comments

Comments

@guillemcortes
Copy link

guillemcortes commented Nov 4, 2021

Hi, I've gone through the code and haven't found how can I do this. Any help would be appreciated.
If I have the following tree:
{Interval(0.0, 4.0, ('a')), Interval(0.5 ,10.0, ('b'))}
I want to obtain the interval (0.5, 4.0). How can I do that?


The big picture of this problem is that splitting the overlaps of the tree above would result in 3 intervals (0.0, 0.5), (0.5, 4.0) and (4.0, 10.0). What I really want to do is merge only the full-overlapping interval i.e. (0.5, 4.0) with one of the other intervals based on what's in data i.e. ('a'), ('b').

Thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant