I want to perform graph isomorphism tests for a very long random walk with fixed windows. That is given a target graph, say a triangle, I want to find how many consecutive 3 nodes in the random walk induce a triangle.
Graph isomorphism test is very costly and there may be repetitive graph patterns appearing in the random walk. Thus, it is expensive to do the isomorphism test on-the-fly when the random walk is simulated.
Hence, I want to store the random walk first. Afterwards, I want to use some pruning techniques to reduce the number of isomorphism test.
So my question is that how to store a very long random walk with very low memory cost? The naive way is just to store the whole sequence of the random walk, which will cause high memory usage. Is there any better cache technique to do that?