class_docstr: Unit tests for :func:`~networkx.thresholded_random_geometric_graph`
class_docstr_tok: ["Unit","tests","for",":","func",":","`","~networkx.thresholded_random_geometric_graph","`"]
docstr: Tests that pairs of vertices adjacent if and only if their sum
  weights exceeds the threshold parameter theta.
docstr_tok: ["Tests","that","pairs","of","vertices","adjacent","if","and","only","if","their","sum","weights","exceeds","the","threshold","parameter","theta","."]
code: def test_theta(self):
      """Tests that pairs of vertices adjacent if and only if their sum
      weights exceeds the threshold parameter theta.
      """
      G = nx.thresholded_random_geometric_graph(50, 0.25, 0.1, seed=42)
  
      for u, v in combinations(G, 2):
          # Adjacent vertices must be within the given distance.
          if v in G[u]:
              assert (
                  G.nodes[u]["weight"] + G.nodes[v]["weight"]
              ) >= 0.1
  
imports: import math
  import random
  from itertools import combinations
  import pytest
  import networkx
label_desc: Use image node_id 5 for calling the TestThresholdedRandomGeometricGraph obj's underlying member method code with example usage: obj.test_theta() without return types