docstr: Erdos-Renyi degree increases edges
docstr_tok: ["Erdos-Renyi","degree","increases","edges"]
code: def test_erdos_renyi_degree_increases_edges(self):
      """Erdos-Renyi degree increases edges"""
      edge_counts = [
          max(
              len(generate_structure(100, degree, "erdos-renyi").edges)
              for _ in range(10)
          )
          for degree in [10, 90]
      ]
  
      assert edge_counts == sorted(edge_counts)
  
imports: import operator
  from typing import Hashable, Tuple, Union
  import networkx
  import numpy
  import pandas
  import pytest
  from networkx.algorithms.dag import is_directed_acyclic_graph
  from sklearn.gaussian_process.kernels import RBF
  from causalnex.structure.data_generators.core import _sample_binary_from_latent, _sample_count_from_latent, _sample_poisson, generate_structure, nonlinear_sem_generator, sem_generator
  from causalnex.structure.structuremodel import StructureModel
label_desc: Use image node_id 9 for calling the TestGenerateStructure obj's underlying member method code with example usage: obj.test_erdos_renyi_degree_increases_edges() without return types