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

Decrease memory footprint in `MultiOrderModel` #178

Open M-Lampert opened 6 months ago

M-Lampert commented 6 months ago

lift_order uses the non-aggregated LineGraph of the previous order to create the next. This means there are a lot of duplicate topological paths (at different time) saved during computations. Although we cannot reduce the Graph to only have the unique paths because they might continue into different directions depending on the time, we can save only the unique node sequences and a corresponding index that saves at which position each duplicate of each unique node sequence should be. The idea was already implemented in #156 for temporal shortest path calculations that are not needed anymore.