You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I experience that it is very slow to convert the dictionary returned by all_pairs_dijkstra_shortest_paths on a large graph into a dataframe. Unnesting the dict into three lists (of 1.6 Million rows) works well, but when I read this into a dataframe as follows, it takes an extremely long time and can crash my system.
I believe this is due to the dictionary entries not being contiguous in memory, or some similar effect. It would be very nice to be able to export rustworkx output directly to a dataframe for further processing.
The text was updated successfully, but these errors were encountered:
I think this is aligned with #1033, I don't think it will be easy to implement but it is our most requested integration.
In the meantime, maybe you can use .explode() with .apply() to see if it performs slightly better?
Something along these lines of Pandas code to avoid Python loops which are known to be slow. It might be able to be ported to Polars as well.
What is the expected enhancement?
I experience that it is very slow to convert the dictionary returned by
all_pairs_dijkstra_shortest_paths
on a large graph into a dataframe. Unnesting the dict into three lists (of 1.6 Million rows) works well, but when I read this into a dataframe as follows, it takes an extremely long time and can crash my system.I believe this is due to the dictionary entries not being contiguous in memory, or some similar effect. It would be very nice to be able to export rustworkx output directly to a dataframe for further processing.
The text was updated successfully, but these errors were encountered: