| 289 | } |
| 290 | |
| 291 | Path *AllPathsCtx_NextPath(AllPathsCtx *ctx) { |
| 292 | if (!ctx || ctx->maxLen == 0) return NULL; |
| 293 | |
| 294 | if (ctx->shortest_paths) |
| 295 | return AllShortestPaths_NextPath(ctx); |
| 296 | else |
| 297 | return _AllPathsCtx_NextPath(ctx); |
| 298 | } |
| 299 | |
| 300 | void AllPathsCtx_Free(AllPathsCtx *ctx) { |
| 301 | if(!ctx) return; |