class_docstr: Unit tests for the :func:`~networkx.graph_atlas_g` function.
class_docstr_tok: ["Unit","tests","for","the",":","func",":","`","~networkx.graph_atlas_g","`","function","."]
code: def test_nondecreasing_edges(self):
      # check for nondecreasing number of edges (for fixed number of
      # nodes)
      for n, group in groupby(self.GAG, key=nx.number_of_nodes):
          for m1, m2 in pairwise(map(nx.number_of_edges, group)):
              assert m2 <= m1 + 1
  
file_path: networkx/networkx/generators/tests/test_atlas.py
imports: from itertools import groupby
  import pytest
  import networkx
  from networkx import graph_atlas, graph_atlas_g
  from networkx.generators.atlas import NUM_GRAPHS
  from networkx.utils import edges_equal, nodes_equal, pairwise
label_desc: Use image node_id 5 for calling the TestAtlasGraphG obj's underlying member method code with example usage: obj.test_nondecreasing_edges() without return types