All mock tests are FREE till 31 December — register to save your progress
Unit 4 · Data Structures HTET 2022 PGT Computer Science

Sum of degrees of all nodes for a graph G(V, E) can be given by ...... .

एक ग्राफ G(V, E) के लिए सभी नोड्स की डिग्रीज का योग ......... के द्वारा दिया जा सकता है।

Pick an option to check yourself, or open the answer below.

Show answer & explanation

Correct answer: B. 2 × |E|

Explanation

Handshaking lemma: every edge adds 1 to the degree of each of its two end vertices, so the sum of all degrees = 2|E|.

हैंडशेकिंग लेम्मा: हर किनारा (edge) अपने दोनों सिरों की डिग्री में 1-1 जोड़ता है, अतः डिग्रियों का योग = 2|E|।

More Data Structures questions