I have a scenario where Querying Nodes {11,12,13} select a Source Node {1,2,3} to get data from. I assume 2 iterations, wherein each iteration the Querying Nodes are assigned a Source Node. Assuming that in first iteration the selected paths between src-dst pairs are as follows:
[11 <- 26 <- 8 <- 1],
[12 <- 29 <- 23 <- 36 <- 2],
[13 <- 17 <- 3]

while in the second iteration the paths are:
[11 <- 1],
[12 <- 17 <- 9 <- 2],
[13 <- 23 <- 29 <- 17 <- 3]

I want to store the selected src-dst paths from iteration 1 into a data-structure in order to compare a particular user node's src-dst path from iteration 1 to that of iteration 2 (to check whether the user node from 2 iterations have the same path as from iteration 1 or different) e.g. comparing 11 <- 26 <- 8 <- 1 (from iteration 1) and 11 <- 1 (from iteration 2). The issue is that I lack the knowledge about which data structure to use for storing paths with varying number of nodes. Kindly help if you know whats the solution.