biBacktrace function
dynamic
biBacktrace(
- dynamic nodeA,
- dynamic nodeB
Backtrace from start and end node, and return the path. (including both start and end nodes) @param {Node} @param {Node}
Implementation
biBacktrace(nodeA, nodeB) {
var pathA = backtrace(nodeA),
pathB = backtrace(nodeB);
return new List.from(pathA).addAll(pathB.reversed);
}