Skip to content

hexsprite/intervaltree

Repository files navigation

intervaltree JS

A mutable, self-balancing interval tree ported from the Python intervaltree package.

Examples

  • Getting started

    import IntervalTree, { Interval } from 'intervaltree'
    const tree = new IntervalTree()
  • Adding intervals

    t.addInterval(1, 2, 'data for 1 through 2')
    t.add(new Interval(3, 4, 'data for 3 through 4'))

Future improvements

See the issue tracker on GitHub.

Based on

Copyright

The source code for this project is at https://github.com/hexsprite/intervaltree

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published