Skip to content

Latest commit

 

History

History
49 lines (35 loc) · 1.65 KB

README.md

File metadata and controls

49 lines (35 loc) · 1.65 KB

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