Find same sequences of nodes in a graph with multiple chains of nodes (Sequential Pattern Mining algorithm)

I found a few topics which could be interested:

I understand the logic but I wonder if it is optimize for big graphs :confused: