class_docstr: Unit tests for :func:`networkx.generators.interval_graph.interval_graph`
docstr: Tests for trivial case of empty input
docstr_tok: ["Tests","for","trivial","case","of","empty","input"]
code: def test_empty(self):
      """Tests for trivial case of empty input"""
      assert len(interval_graph([])) == 0
  
file_path: networkx/networkx/generators/tests/test_interval_graph.py
imports: import math
  import pytest
  import networkx
  from networkx.generators.interval_graph import interval_graph
  from networkx.utils import edges_equal
label_desc: Use image node_id 1 for calling the TestIntervalGraph obj's underlying member method code with example usage: obj.test_empty() without return types