docstr: Get the number of edges in the graph.
docstr_tok: ["Get","the","number","of","edges","in","the","graph","."]
code: def number_of_edges(self, directed_edges=False):
      """
      Get the number of edges in the graph.
      """
  
      if directed_edges and self.edgelist is not None:
          return len(self.edgelist.edgelist_df)
  
      if self.properties.edge_count is None:
          if self.edgelist is not None:
              self.view_edge_list()
          else:
              raise RuntimeError("Graph is Empty")
      return self.properties.edge_count
  
imports: import gc
  from typing import Union
  import warnings
  import cudf
  import cupy
  import dask
  import dask_cudf
  from dask import delayed
  from dask.distributed import wait, default_client
  import numpy
  from pylibcugraph import MGGraph, ResourceHandle, GraphProperties, get_two_hop_neighbors, select_random_vertices
  from cugraph.structure import graph_primtypes_wrapper
  from cugraph.structure.graph_primtypes_wrapper import Direction
  from cugraph.structure.number_map import NumberMap
  from cugraph.structure.symmetrize import symmetrize
  from cugraph.dask.common.part_utils import get_persisted_df_worker_map, persist_dask_df_equal_parts_per_worker
  from cugraph.dask.common.mg_utils import run_gc_on_dask_cluster
  from cugraph.dask import get_n_workers
  import cugraph.dask.comms.comms
label_desc: Use image node_id 10 for calling the simpleDistributedGraphImpl obj's underlying member method code with example usage: obj.number_of_edges(directed_edges) and returns: self, len