mlx_graphs.utils.transformations.remove_duplicate_directed_edges

mlx_graphs.utils.transformations.remove_duplicate_directed_edges#

mlx_graphs.utils.transformations.remove_duplicate_directed_edges(edge_index: mlx.core.array) mlx.core.array[source]#

Removes the duplicate directed edges in edge_index.

Parameters:

edge_index (array) – The edge_index on which remove duplicate edges.

Return type:

array

Returns:

An edge_index without duplicates.