traverse from the frontier node in the specified direction and add all encountered nodes and edges.
| 388 | |
| 389 | // traverse from the frontier node in the specified direction and add all encountered nodes and edges. |
| 390 | static void addNeighbors |
| 391 | ( |
| 392 | SinglePairCtx *ctx, |
| 393 | LevelConnection *frontier, |
| 394 | uint32_t depth, |
| 395 | GRAPH_EDGE_DIR dir |
| 396 | ) { |
| 397 | switch(dir) { |
| 398 | case GRAPH_EDGE_DIR_OUTGOING: |
| 399 | addOutgoingNeighbors(ctx, frontier, depth); |
| 400 | break; |
| 401 | case GRAPH_EDGE_DIR_INCOMING: |
| 402 | addIncomingNeighbors(ctx, frontier, depth); |
| 403 | break; |
| 404 | case GRAPH_EDGE_DIR_BOTH: |
| 405 | addIncomingNeighbors(ctx, frontier, depth); |
| 406 | addOutgoingNeighbors(ctx, frontier, depth); |
| 407 | break; |
| 408 | default: |
| 409 | ASSERT(false && "encountered unexpected traversal direction in AllPaths"); |
| 410 | break; |
| 411 | } |
| 412 | } |
| 413 | |
| 414 | // get numeric attribute value of an entity otherwise return default value |
| 415 | static inline SIValue _get_value_or_defualt |
no test coverage detected