Graph Theory37 sections · 1633 units
Open in CourseQuiz: Graph Representations in Code
Knowledge check
Check Your Understanding
You build an adjacency list for an undirected graph with vertices using vector<vector<int>> adj(V). When you add edge , you push into adj[u] and into adj[v]. What is the total size across all inner vectors after adding edges?
- A.
- B.
- C.
- D.