Helper function. * Given an arc idx, return the node from which this arc emanates in the residual network. */
| 400 | /* Helper function. |
| 401 | * Given an arc idx, return the node from which this arc emanates in the residual network. */ |
| 402 | static u32 arc_tail(const struct linear_network *linear_network, |
| 403 | const struct arc arc) |
| 404 | { |
| 405 | assert(arc.idx < tal_count(linear_network->arc_tail_node)); |
| 406 | return linear_network->arc_tail_node[ arc.idx ]; |
| 407 | } |
| 408 | /* Helper function. |
| 409 | * Given an arc idx, return the node that this arc is pointing to in the residual network. */ |
| 410 | static u32 arc_head(const struct linear_network *linear_network, |
no outgoing calls
no test coverage detected