torch_geometric.transforms.RemoveDuplicatedEdges
- class RemoveDuplicatedEdges(key: Union[str, List[str]] = ['edge_attr', 'edge_weight'], reduce: str = 'add')[source]
Bases:
BaseTransform
Removes duplicated edges from a given homogeneous or heterogeneous graph. Useful to clean-up known repeated edges/self-loops in common benchmark datasets, e.g., in
ogbn-products
. (functional name:remove_duplicated_edges
).