Question DSA-GRAPH-0069
HardA connected undirected graph has V vertices and E edges. How many edges must be removed to leave a spanning tree?
- A.
E − V
- B.
E
- C.
Sign up free to see the answer and a step-by-step explanation.
Popular companies
Prepare company by company
Hiring pattern, syllabus, past questions and mocks for each company.
All companiesPractice by subject
Graphs question
A connected undirected graph has V vertices and E edges. How many edges must be removed to leave a spanning tree?
E − V
E
Sign up free to see the answer and a step-by-step explanation.
E − V + 1
V − 1