-
Notifications
You must be signed in to change notification settings - Fork 2
/
bfs.h
40 lines (34 loc) · 734 Bytes
/
bfs.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#ifndef BFS_H
#define BFS_H
/* all arrays on HOST ! */
void bfs_continue(
unsigned* queue,
unsigned* p_begin,
unsigned* p_end,
unsigned const* offsets,
unsigned const* adj,
unsigned* comp,
unsigned* layer);
void bfs_from(
unsigned start,
unsigned the_comp,
unsigned* queue,
unsigned* p_begin,
unsigned* p_end,
unsigned const* offsets,
unsigned const* adj,
unsigned* comp,
unsigned* layer);
void bfs_full(
unsigned n,
unsigned const* offsets,
unsigned const* adj,
unsigned* comp,
unsigned* layer,
unsigned* sorted);
void connected_components(
unsigned n,
unsigned const* offsets,
unsigned const* adj,
unsigned* comp);
#endif