code: def is_empty(G):
      """Returns True if `G` has no edges.
  
      Parameters
      ----------
      G : graph
          A NetworkX graph.
  
      Returns
      -------
      bool
          True if `G` has no edges, and False otherwise.
  
      Notes
      -----
      An empty graph can have nodes but not edges. The empty graph with zero
      nodes is known as the null graph. This is an $O(n)$ operation where n
      is the number of nodes in the graph.
  
      """
      return not any(G.adj.values())
  
imports: from collections import Counter
  from itertools import chain
  import networkx
  from networkx.utils import not_implemented_for, pairwise
label_desc: Use image node_id 33 for calling a global function with example usage: is_empty(G) and returns: unknown