Skip to content

add coalesce function #608

@CarloLucibello

Description

@CarloLucibello

Similar to the corresponding method in PyG, coalesce(g) should correspond to removing duplicate edges and accumulating the corresponding values, followed by edge sorting.

Can be possibly implemented using the functions remove_multi_edges and sort_edge_index we already have.

This function makes sense only when the underlying graph type is COO

Metadata

Metadata

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions