tnetwork.utils.Intervals.add_interval¶
-
Intervals.
add_interval
(interval)[source]¶ Add the provided interval to the current interval object.
Note that the method is relatively slow since all cases need to be checked. One could use a specific, optimized function to add specifically at the end: _add_interval_at_the_end
Parameters: interval – provided as a pair (start, end)