mlx_graphs.utils.transformations.to_undirected#
- mlx_graphs.utils.transformations.to_undirected(edge_index: mlx.core.array, edge_features=None) mlx.core.array[source]#
- mlx_graphs.utils.transformations.to_undirected(edge_index: mlx.core.array, edge_features: mlx.core.array) tuple[mlx.core.array, mlx.core.array]
Converts a graph given as edge_index and, optionally, edge_features to an undirected one.