biBacktrace function

dynamic biBacktrace(
  1. dynamic nodeA,
  2. 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);
}