dgl.graphbolt.exclude_seed_edges

dgl.graphbolt.exclude_seed_edges(minibatch: MiniBatch, include_reverse_edges: bool = False, reverse_etypes_mapping: Dict[str, str] | None = None, async_op: bool = False)[源码]

从小批次中采样得到的子图中排除种子边及其(可选)反向边。

参数:
  • minibatch (MiniBatch) – 小批量数据。

  • include_reverse_edges (bool) – 是否也应排除反向边。默认为 False。

  • reverse_etypes_mapping (Dict[str, str] = None) – 原始边类型到其反向边类型的映射。

  • async_op (bool) – 布尔值,指示调用是否为异步。如果是,可以通过在修改后的 sampled_subgraphs 上调用 wait 获取结果。