I use the alternative algorithm and set
“alternative_route.max_weight_factor” = 1.5
“alternative_route.max_share_factor” = 0.7
“alternative_route.max_paths” = 3
it seems “route.max_share_factor” just checks if each alternative is not similar to the best route, not all alternatives together.
so, as result I get three routes that two alternatives are very similar.
I wonder, is that any way to check alternatives similarity too?
I check source code in AlternativeRoute.java and seems this piece of code checks similarity:
SPTEntry fromEE = getFirstShareEE(fromSPTEntry.parent, true);
SPTEntry toEE = getFirstShareEE(toSPTEntry.parent, false);
double shareWeight = fromEE.getWeightOfVisitedPath() + toEE.getWeightOfVisitedPath();
boolean smallShare = shareWeight / bestWeight < maxShareFactor;