dynetworkx.IntervalGraph.interval

IntervalGraph.interval()
Return a 2-tuple as (begin, end) interval of the entire

interval graph.

Note that end is non-inclusive.

Examples

>>> G = dnx.IntervalGraph()
>>> G.add_edges_from([(1, 2, 0, 10), (3, 7, 9, 16)])
>>> G.interval()
(0, 16)