class_docstr: Unit tests for :func:`~networkx.random_geometric_graph`
class_docstr_tok: ["Unit","tests","for",":","func",":","`","~networkx.random_geometric_graph","`"]
code: def test_number_of_nodes(self):
      G = nx.random_geometric_graph(50, 0.25, seed=42)
      assert len(G) == 50
      G = nx.random_geometric_graph(range(50), 0.25, seed=42)
      assert len(G) == 50
  
imports: import math
  import random
  from itertools import combinations
  import pytest
  import networkx
label_desc: Use image node_id 1 for calling the TestRandomGeometricGraph obj's underlying member method code with example usage: obj.test_number_of_nodes() without return types