MCPcopy Create free account
hub / github.com/codemistic/Data-Structures-and-Algorithms / Graph

Method Graph

BFS in C++/BFS.cpp:17–20  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

15};
16
17Graph::Graph(int vertices) {
18 numVertices = vertices;
19 adjLists = new list<int>[vertices];
20}
21void Graph::addEdge(int src, int dest) {
22 adjLists[src].push_back(dest);
23 adjLists[dest].push_back(src);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected