class_docstr: Unit tests for :func:`~networkx.soft_random_geometric_graph`
class_docstr_tok: ["Unit","tests","for",":","func",":","`","~networkx.soft_random_geometric_graph","`"]
docstr: Tests if p_dict = 0 returns disconnected graph with 0 edges
docstr_tok: ["Tests","if","p_dict","=","0","returns","disconnected","graph","with","0","edges"]
code: def test_p_dist_zero(self):
      """Tests if p_dict = 0 returns disconnected graph with 0 edges"""
  
      def p_dist(dist):
          return 0
  
      G = nx.soft_random_geometric_graph(50, 0.25, p_dist=p_dist)
      assert len(G.edges) == 0
  
imports: import math
  import random
  from itertools import combinations
  import pytest
  import networkx
label_desc: Use image node_id 6 for calling the TestSoftRandomGeometricGraph obj's underlying member method code with example usage: obj.test_p_dist_zero() and returns: int