I want to execute Yen's algorithm using Query annotation in Spring Data. It works but I have problem with mapping the paths:
in option A: I'm mapping to List, it returns all of nodes in one list without separating paths
in option B: I'm using mapping to List<List> and it separates path bur returns only first nodes from all paths as list.
I want to map algorithm result to List<List> like:
[
[a,b,c],
[f,b],
[s,g,t,h],
] etc
Could you please help me how to do it? I was trying using nodes, collect function and also with another class containing only list of NodeName but nothing worked as expected.