MCPcopy 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

4int v; //No. of Vertices
5
6void 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

mainFunction · 0.85

Calls 1

push_backMethod · 0.80

Tested by

no test coverage detected