| 218 | } |
| 219 | |
| 220 | static ProcedureResult Proc_BFS_Free |
| 221 | ( |
| 222 | ProcedureCtx *ctx |
| 223 | ) { |
| 224 | ASSERT(ctx != NULL); |
| 225 | |
| 226 | // free private data |
| 227 | BFSCtx *pdata = ctx->privateData; |
| 228 | |
| 229 | if(pdata->output != NULL) array_free(pdata->output); |
| 230 | if(pdata->nodes != NULL) GrB_Vector_free(&pdata->nodes); |
| 231 | if(pdata->parents != NULL) GrB_Vector_free(&pdata->parents); |
| 232 | |
| 233 | rm_free(ctx->privateData); |
| 234 | |
| 235 | return PROCEDURE_OK; |
| 236 | } |
| 237 | |
| 238 | static BFSCtx *_Build_Private_Data() { |
| 239 | // set up the BFS context |
nothing calls this directly
no test coverage detected