Give me the node at the head of an arc. */
| 90 | |
| 91 | /* Give me the node at the head of an arc. */ |
| 92 | static inline struct node arc_head(const struct graph *graph, |
| 93 | const struct arc arc) |
| 94 | { |
| 95 | const struct arc dual = arc_dual(graph, arc); |
| 96 | assert(dual.idx < graph_max_num_arcs(graph)); |
| 97 | return graph->arc_tail[dual.idx]; |
| 98 | } |
| 99 | |
| 100 | /* We use an arc array but not all arcs in that array do exist in the graph. */ |
| 101 | static inline bool arc_enabled(const struct graph *graph, const struct arc arc) |