Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/codemistic/Data-Structures-and-Algorithms
/ bfs_recursive
Function
bfs_recursive
graph/code4.cpp:37–47 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
35
}
36
37
void bfs_recursive(vector<int> vec[], int v)
38
{
39
vector<bool> visited(v, false);
40
for (int i = 0; i < v; i++)
41
{
42
if (visited[i] == false)
43
{
44
bfs(vec, v, i, visited);
45
}
46
}
47
}
48
49
int main()
50
{
Callers
1
main
Function · 0.85
Calls
1
bfs
Function · 0.70
Tested by
no test coverage detected