Question DSA-GRAPH-0004
EasyWhat is the degree of a vertex in an undirected graph?
- A.
Its distance from the root
- B.
The number of vertices in the graph
- C.
Show answer and explanation
Answer: C
The sum of all degrees equals 2E, since each edge counts twice.