Returns the length of the minimum-spanning Interval that encloses all the members of this IntervalTree. If the tree is empty, return 0.
(self)
| 968 | return Interval(self.begin(), self.end()) |
| 969 | |
| 970 | def span(self): |
| 971 | """ |
| 972 | Returns the length of the minimum-spanning Interval that |
| 973 | encloses all the members of this IntervalTree. If the tree |
| 974 | is empty, return 0. |
| 975 | """ |
| 976 | if not self: |
| 977 | return 0 |
| 978 | return self.end() - self.begin() |
| 979 | |
| 980 | def print_structure(self, tostring=False): |
| 981 | """ |