Skip to content

Latest commit

 

History

History
14 lines (9 loc) · 271 Bytes

File metadata and controls

14 lines (9 loc) · 271 Bytes

Iterating through edges without repeating

    u32 j = 0; // Index shift per iteration
    for (u32 i = 0; i < 2*numberOfEdges(T); i+=j){
        Edge e = getIthEdge(i, G);
        // Do something with edges and so on
        j = degree(e.x, T) + 1;
    }