tgraph.c
void purgepaths(tgraph* t) {
    for (u64 i = 0; i < t->pathcnt; ++i) {
        for (u64 j = i + 1; j < t->pathcnt; ++j) {
            if (t->paths[j].len == 0) {
                removepath(t, j);
            } else if (samepath(t->paths + i, t->paths + j)) {
                removepath(t, j);
            }
        }
    }
}
// Checks all paths in a tgraph's pathlist and removes 0-paths and identical paths
Checks all paths in a tgraph's pathlist and removes 0-paths and identical paths
Checks all paths in a tgraph ' s pathlist and removes 0 - paths and identical paths
void purgepaths(tgraph* t) {
    for (u64 i = 0; i < t->pathcnt; ++i) {
        for (u64 j = i + 1; j < t->pathcnt; ++j) {
            if (t->paths[j].len == 0) {
                removepath(t, j);
            } else if (samepath(t->paths + i, t->paths + j)) {
                removepath(t, j);
            }
        }
    }
}
void purgepaths ( tgraph * t ) { for ( u64 i = 0 ; i < t -> pathcnt ; ++ i ) { for ( u64 j = i + 1 ; j < t -> pathcnt ; ++ j ) { if ( t -> paths [ j ] . len == 0 ) { removepath ( t , j ) ; } else if ( samepath ( t -> paths + i , t -> paths + j ) ) { removepath ( t , j ) ; } } } }
Checks all paths in a tgraph's pathlist and removes 0-paths and identical paths
Checks all paths in a tgraph ' s pathlist and removes 0 - paths and identical paths