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)[source]

从迷你批次中的采样子图中排除带有或不带有其反向边的种子边。

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

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