Code Library Of Others/sgtlaugh/HLD + RMQ On Edges.cpp
void update(int u, int v, int w){
        int l = lca(u, v);
        update_tree(u, l, w);
        update_tree(v, l, w);
    }
/// Add w to all edges in the path from u to v
Add w to all edges in the path from u to v
Add w to all edges in the path from u to v
void update(int u, int v, int w){
        int l = lca(u, v);
        update_tree(u, l, w);
        update_tree(v, l, w);
    }
void update ( int u , int v , int w ) { int l = lca ( u , v ) ; update_tree ( u , l , w ) ; update_tree ( v , l , w ) ; }
Add w to all edges in the path from u to v
Add w to all edges in the path from u to v