pathpy / pathpyG

GPU-accelerated Next-Generation Network Analytics and Graph Learning for Time Series Data on Complex Networks.
https://www.pathpy.net
GNU Affero General Public License v3.0
33 stars 3 forks source link

inefficient calculation of temporal paths #170

Closed IngoScholtes closed 6 months ago

IngoScholtes commented 7 months ago

The current code to calculate temporal paths in a TemporalGraph suffers from explosive memory usage, which crashes the kernel. Also, despite using the GPU it is not efficient due to the intermediate calculation of all pairs of edges irrespective of their timestamps.

IngoScholtes commented 7 months ago

I have written a new lift_order function that does not suffer from these issues, see notebook temporal_shortest_paths.ipynb in the tutorials folder in the linked branch temporal-paths-mem-efficient.

Side notes: