class_docstr: Duck-typed version of PyG's GraphStore and FeatureStore.
class_docstr_tok: ["Duck-typed","version","of","PyG","'s","GraphStore","and","FeatureStore","."]
docstr: Returns a subgraph with edges limited to those of a given type
  
  Parameters
  ----------
  edge_types : list of pyg canonical edge types
      Directly references the graph's internal edge types.  Does
      not accept PyG edge type tuples.
  
  Returns
  -------
  The appropriate extracted subgraph.  Will extract the subgraph
  if it has not already been extracted.
docstr_tok: ["Returns","a","subgraph","with","edges","limited","to","those","of","a","given","type","Parameters","--","--","--","--","--","edge_types",":","list","of","pyg","canonical","edge","types","Directly","references","the","graph","'s","internal","edge","types",".","Does","not","accept","PyG","edge","type","tuples",".","Returns","--","--","--","-","The","appropriate","extracted","subgraph",".","Will","extract","the","subgraph","if","it","has","not","already","been","extracted","."]
code: def _subgraph(
      self, edge_types: List[tuple] = None
  ) -> cugraph.MultiGraph:
      """
      Returns a subgraph with edges limited to those of a given type
  
      Parameters
      ----------
      edge_types : list of pyg canonical edge types
          Directly references the graph's internal edge types.  Does
          not accept PyG edge type tuples.
  
      Returns
      -------
      The appropriate extracted subgraph.  Will extract the subgraph
      if it has not already been extracted.
  
      """
      if self.__graph is None:
          raise ValueError(
              "Graph is not in memory, cannot get subgraph"
          )
  
      if edge_types is not None and set(edge_types) != set(
          self.__edge_types_to_attrs.keys()
      ):
          raise ValueError(
              "Subgraphing is currently unsupported, please"
              " specify all edge types in the graph or leave"
              " this argument empty."
          )
  
      return self.__graph
  
imports: from typing import Optional, Tuple, Any, Union, List, Dict
  from enum import Enum, auto
  from dataclasses import dataclass
  from collections import defaultdict
  from itertools import chain
  from functools import cached_property
  import numpy
  import cupy
  import pandas
  import cudf
  import cugraph
  import warnings
  import dask.array
  import dask.dataframe
  import dask.distributed
  import dask_cudf
  from cugraph.utilities.utils import import_optional, MissingModule
label_desc: Use image node_id 20 for calling the CuGraphStore obj's underlying member method code with example usage: obj._subgraph(edge_types) and returns: self