Searched refs:bfsq (Results 1 – 1 of 1) sorted by relevance
238 inline static void enqueue(cl_list_t * bfsq, switch_t * sw) in enqueue() argument242 cl_list_insert_tail(bfsq, sw); in enqueue()245 inline static void dequeue(cl_list_t * bfsq, switch_t ** sw) in dequeue() argument247 *sw = (switch_t *) cl_list_remove_head(bfsq); in dequeue()266 cl_list_t bfsq; in shortest_path() local268 cl_list_construct(&bfsq); in shortest_path()269 cl_list_init(&bfsq, 20); in shortest_path()271 enqueue(&bfsq, switches[ir]); in shortest_path()273 while (!cl_is_list_empty(&bfsq)) { in shortest_path()274 dequeue(&bfsq, &sw); in shortest_path()[all …]