| 130 | return arc.idx == INVALID_INDEX; |
| 131 | } |
| 132 | static inline struct arc node_adjacency_next(const struct graph *graph, |
| 133 | const struct arc arc) |
| 134 | { |
| 135 | assert(arc.idx < graph_max_num_arcs(graph)); |
| 136 | return graph->node_adjacency_next[arc.idx]; |
| 137 | } |
| 138 | |
| 139 | /* Used to loop over the arcs that enter a node. */ |
| 140 | static inline struct arc node_rev_adjacency_begin(const struct graph *graph, |