function relaxRightToLeft(nodesByBreadth, alpha, orient) {
    zrUtil.each(nodesByBreadth.slice().reverse(), function (nodes) {
        zrUtil.each(nodes, function (node) {
            if (node.outEdges.length) {
                var y = sum(node.outEdges, weightedTarget, orient)
                        / sum(node.outEdges, getEdgeValue, orient);
                if (orient === 'vertical') {
                    var nodeX = node.getLayout().x + (y - center(node, orient)) * alpha;
                    node.setLayout({x: nodeX}, true);
                }
                else {
                    var nodeY = node.getLayout().y + (y - center(node, orient)) * alpha;
                    node.setLayout({y: nodeY}, true);
                }
            }
        });
    });
}
function relaxRightToLeft(nodesByBreadth, alpha, orient) {
    zrUtil.each(nodesByBreadth.slice().reverse(), function (nodes) {
        zrUtil.each(nodes, function (node) {
            if (node.outEdges.length) {
                var y = sum(node.outEdges, weightedTarget, orient)
                        / sum(node.outEdges, getEdgeValue, orient);
                if (orient === 'vertical') {
                    var nodeX = node.getLayout().x + (y - center(node, orient)) * alpha;
                    node.setLayout({x: nodeX}, true);
                }
                else {
                    var nodeY = node.getLayout().y + (y - center(node, orient)) * alpha;
                    node.setLayout({y: nodeY}, true);
                }
            }
        });
    });
}
function relaxRightToLeft ( nodesByBreadth , alpha , orient ) { zrUtil . each ( nodesByBreadth . slice ( ) . reverse ( ) , function ( nodes ) { zrUtil . each ( nodes , function ( node ) { if ( node . outEdges . length ) { var y = sum ( node . outEdges , weightedTarget , orient ) / sum ( node . outEdges , getEdgeValue , orient ) ; if ( orient === 'vertical' ) { var nodeX = node . getLayout ( ) . x + ( y - center ( node , orient ) ) * alpha ; node . setLayout ( { x : nodeX } , true ) ; } else { var nodeY = node . getLayout ( ) . y + ( y - center ( node , orient ) ) * alpha ; node . setLayout ( { y : nodeY } , true ) ; } } } ) ; } ) ; }
Change the y-position of the nodes, except most the right side nodes

@param {Array.<Array.<module:echarts/data/Graph~Node>>} nodesByBreadth
group by the array of all sankey nodes based on the node x-position.
@param {number} alpha  parameter used to adjust the nodes y-position
Change the y - position of the nodes except most the right side nodes
RelaxRightToLeft - RelaxRightToLeft - RelaxRightToLeft - RelaxRightToLeft - RelaxRightToLeft - RelaxRightToLeft - RelaxRightToLeft - RelaxRightToLeft - RelaxRightToLeft - RelaxRightToLeft - RelaxRightToLeft - RelaxRightToLeft - RelaxRightToLeft - RelaxRightToLeft - RelaxRightToLeft - RelaxRightToLeft - Relax