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.
      """
      # TODO: Move to Outer graphs?
      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:
              if self.properties.directed is False:
                  self.properties.edge_count = len(
                      self.edgelist.edgelist_df[
                          self.edgelist.edgelist_df[
                              simpleGraphImpl.srcCol
                          ]
                          >= self.edgelist.edgelist_df[
                              simpleGraphImpl.dstCol
                          ]
                      ]
                  )
              else:
                  self.properties.edge_count = len(
                      self.edgelist.edgelist_df
                  )
          elif self.adjlist is not None:
              self.properties.edge_count = len(self.adjlist.indices)
          elif self.transposedadjlist is not None:
              self.properties.edge_count = len(
                  self.transposedadjlist.indices
              )
          else:
              raise ValueError("Graph is Empty")
      return self.properties.edge_count
  
imports: from cugraph.structure import graph_primtypes_wrapper
  from cugraph.structure.graph_primtypes_wrapper import Direction
  from cugraph.structure.symmetrize import symmetrize
  from cugraph.structure.number_map import NumberMap
  import cugraph.dask.common.mg_utils
  import cudf
  import dask_cudf
  import cugraph.dask.comms.comms
  import pandas
  import numpy
  import warnings
  from cugraph.dask.structure import replication
  from typing import Union, Dict
  from pylibcugraph import get_two_hop_neighbors, select_random_vertices
  from pylibcugraph import ResourceHandle, GraphProperties, SGGraph
label_desc: Use image node_id 21 for calling the simpleGraphImpl obj's underlying member method code with example usage: obj.number_of_edges(directed_edges) and returns: self, len