class_docstr: Unit tests for the :func:`~networkx.waxman_graph` function.
class_docstr_tok: ["Unit","tests","for","the",":","func",":","`","~networkx.waxman_graph","`","function","."]
docstr: Tests for providing an alternate distance metric to the generator.
docstr_tok: ["Tests","for","providing","an","alternate","distance","metric","to","the","generator","."]
code: def test_metric(self):
      """Tests for providing an alternate distance metric to the generator."""
      # Use the L1 metric.
      G = nx.waxman_graph(50, 0.5, 0.1, metric=l1dist)
      assert len(G) == 50
  
imports: import math
  import random
  from itertools import combinations
  import pytest
  import networkx
label_desc: Use image node_id 3 for calling the TestWaxmanGraph obj's underlying member method code with example usage: obj.test_metric() without return types