Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/codemistic/Data-Structures-and-Algorithms
/ Add_edge
Function
Add_edge
CPP/BFS_AND_DFS.cpp:6–9 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
4
int v; //No. of Vertices
5
6
void Add_edge(vector<int> adj[], int a, int b)
7
{
8
adj[a].push_back(b);
9
}
10
11
/************************************* ALGORITHM FOR BREADTH FIRST SEARCH ******************************************************/
12
Callers
1
main
Function · 0.85
Calls
1
push_back
Method · 0.80
Tested by
no test coverage detected