PRACTICE / UNDERSTAND / REPEAT

Data Structures & Algorithms: Graphs

Practice graphs with self-contained questions. Check your answer, then use the explanation to understand the reasoning.

20 questionsAnswers explainedFree · no login
Question 1 of 20
Graphs · MCQQuestion link ↗

An undirected simple graph has 4 edges. What is the sum of the degrees of all vertices?

Choose one answer
Answer & explanation

Answer: 8

Every undirected edge contributes one to the degree of each endpoint.