Convert# to_networkx(data[, remove_self_loops]) Converts a mlx_graphs.data.GraphData instance to a a directed networkx.DiGraph otherwise. from_networkx(data) Converts a networkx.Graph or networkx.DiGraph to a mlx_graphs.data.GraphData instance.