class_docstr: Class which stores vertex and edge properties that can be used to construct
  Graphs from individual property selections and used later to annotate graph
  algorithm results with corresponding properties.
class_docstr_tok: ["Class","which","stores","vertex","and","edge","properties","that","can","be","used","to","construct","Graphs","from","individual","property","selections","and","used","later","to","annotate","graph","algorithm","results","with","corresponding","properties","."]
docstr: Return the number of all edges or edges of a given type.
  
  Parameters
  ----------
  type : string, optional
      If type is None (the default), return the total number of edges,
      otherwise return the number of edges of the specified type.
  
  See Also
  --------
  PropertyGraph.get_num_vertices
docstr_tok: ["Return","the","number","of","all","edges","or","edges","of","a","given","type",".","Parameters","--","--","--","--","--","type",":","string",",","optional","If","type","is","None","(","the","default",")",",","return","the","total","number","of","edges",",","otherwise","return","the","number","of","edges","of","the","specified","type",".","See","Also","--","--","--","--","PropertyGraph.get_num_vertices"]
code: def get_num_edges(self, type=None):
      """Return the number of all edges or edges of a given type.
  
      Parameters
      ----------
      type : string, optional
          If type is None (the default), return the total number of edges,
          otherwise return the number of edges of the specified type.
  
      See Also
      --------
      PropertyGraph.get_num_vertices
      """
      if type is None:
          if self.__edge_prop_dataframe is not None:
              return len(self.__edge_prop_dataframe)
          else:
              return 0
      if self.__edge_prop_dataframe is None:
          return 0
      value_counts = self._edge_type_value_counts
      return value_counts[type] if type in value_counts else 0
  
imports: import cudf
  import cupy
  import cugraph
  import dask_cudf
  import cugraph.dask
  from cugraph.utilities.utils import import_optional, create_list_series_from_2d_ar
  from typing import Union
label_desc: Use image node_id 13 for calling the EXPERIMENTAL__MGPropertyGraph obj's underlying member method code with example usage: obj.get_num_edges(type) and returns: unknown, int, len, int