Helper function. * Given node idx `node`, return the idx of the first arc whose tail is `node`. * */
| 419 | * Given node idx `node`, return the idx of the first arc whose tail is `node`. |
| 420 | * */ |
| 421 | static struct arc node_adjacency_begin( |
| 422 | const struct linear_network * linear_network, |
| 423 | const u32 node) |
| 424 | { |
| 425 | assert(node < tal_count(linear_network->node_adjacency_first_arc)); |
| 426 | return linear_network->node_adjacency_first_arc[node]; |
| 427 | } |
| 428 | |
| 429 | /* Helper function. |
| 430 | * Is this the end of the adjacency list. */ |
no outgoing calls
no test coverage detected