ScholarQuill logoScholarQuillUniversity Notes
  • Notes
  • Past Papers
  • Blogs
  • Todo
Login
ScholarQuill logoScholarQuillUniversity Notes
Login
NotesPast PapersBlogsTodo
More
SubjectsDiscussionCGPA CalculatorGPA CalculatorStudent PortalCourse Outline
About
About usPrivacy PolicyReportContact
Notes
Past Papers
Blogs
Todo
Analytics
    Current Subject
    🧩
    Discrete Structures
    GE-167
    Progress0 / 67 topics
    Topics
    1. Mathematical Reasoning: Propositional and Predicate Logic2. Propositional Logic: Logical Operators3. Translations Between Symbolic Expressions and Formal English Expression4. Logical Equivalences5. Predicate Logic: Quantifiers6. Nested Quantification7. Equivalences in Predicate Logic8. Translations Between Symbolic Forms and Formal English9. Rules of Inference: Proof Methods and Strategies10. Direct Proof11. Proof by Contraposition12. Proof by Induction13. Proof by Implication14. Existence Proof15. Uniqueness Proofs16. Trivial Proofs17. Vacuous Proofs18. Sets: Notations and Set Operations19. Venn Diagrams20. Countable and Uncountable Sets21. Relations: Equivalence Relations and Partitions22. Partial Orderings23. Recurrence Relations24. Functions: Injective, Surjective, Bijective25. Special Types of Functions26. Function Composition27. Inverse Functions28. Recursive Functions29. Compositions30. Number Theory: Sequences and Series31. Counting: Inclusion and Exclusion Principle32. Pigeonhole Principle33. Permutations and Combinations34. Integers and Divisibility: Division Theorem35. Modular Arithmetic36. LCM and GCD37. Euclidean and Extended Euclidean Method38. Finding Solutions to Congruence39. Primes: Fundamental Theorem of Arithmetic40. Characterizations of Primes41. Mersenne Primes42. Induction: Weak Induction43. Strong Induction44. Recursion and Recurrences: Formulation of Recurrences45. Closed Formulas46. Counting: Product Rule and Sum Rule47. Principle of Inclusion-Exclusion48. Binomial Coefficients49. Pascal's Identity and Pascal’s Triangle50. Binomial Theorem51. Relations: Reflexive, Symmetric, Transitive, and Antisymmetric52. Equivalence Relations and Equivalence Classes53. Partial Orders54. Graph Theory: Terminologies55. Elements of Graph Theory56. Planar Graphs57. Graph Coloring58. Euler Graph59. Hamiltonian Path60. Rooted Trees61. Graph Traversals62. Handshaking Lemma and Corollary63. Special Families of Graphs64. Graph Isomorphism65. Planarity in Graphs66. Eulerian and Hamiltonian Graphs67. Trees in Graph Theory
    GE-167›Handshaking Lemma and Corollary
    Discrete StructuresTopic 62 of 67

    Handshaking Lemma and Corollary

    7 minread
    1,252words
    Intermediatelevel

    Handshaking Lemma and Corollary

    The Handshaking Lemma is a fundamental result in graph theory that relates the degree of the vertices in a graph to the number of edges. It provides insights into the structure of a graph and is often used in combinatorial proofs.


    1. Handshaking Lemma (Theorem)

    The Handshaking Lemma states that in any undirected graph, the sum of the degrees of all the vertices is twice the number of edges.

    Formal Statement:

    For a graph G=(V,E)G = (V, E)G=(V,E), where VVV is the set of vertices and EEE is the set of edges:

    ∑v∈Vdeg(v)=2∣E∣\sum_{v \in V} \text{deg}(v) = 2|E|v∈V∑​deg(v)=2∣E∣

    Where:

    • deg(v)\text{deg}(v)deg(v) is the degree of vertex vvv, which is the number of edges incident to vvv.
    • ∣E∣|E|∣E∣ is the total number of edges in the graph.

    Explanation:

    Each edge in an undirected graph connects two vertices and contributes 1 to the degree of both of those vertices. Therefore, for each edge, it "adds" 1 to the degree of two vertices. This means that the sum of the degrees of all vertices counts each edge twice. Thus, the total degree of all vertices is twice the number of edges.


    2. Proof of the Handshaking Lemma

    To prove the Handshaking Lemma, consider the following steps:

    1. Counting the edges: Each edge in the graph connects two vertices, and so each edge is counted once for each of the two vertices it connects.
    2. Degree of vertices: The degree of a vertex vvv, deg(v)\text{deg}(v)deg(v), is the number of edges incident to vvv. When we sum the degrees of all vertices, we are counting the total number of edge incidences across the graph (i.e., how many times an edge is incident to a vertex).
    3. Counting twice: Since each edge is counted twice—once for each of its two endpoints—the sum of the degrees of all vertices is twice the number of edges.

    Thus, we can conclude that:

    ∑v∈Vdeg(v)=2∣E∣\sum_{v \in V} \text{deg}(v) = 2|E|v∈V∑​deg(v)=2∣E∣

    3. Corollary of the Handshaking Lemma

    From the Handshaking Lemma, we can derive some important corollaries:

    Corollary 1: The number of vertices with odd degree is even.

    Statement: In any undirected graph, the number of vertices with an odd degree is always even.

    Proof:

    • The Handshaking Lemma states that the sum of all vertex degrees is even (since it is twice the number of edges).
    • If there are an odd number of vertices with odd degrees, then the sum of their degrees would be odd, which would contradict the Handshaking Lemma.
    • Therefore, the number of vertices with odd degree must be even.

    Example: In a graph, if there are 3 vertices with an odd degree, the total degree sum would be odd, which is not possible since the sum must be even. Hence, there must always be an even number of vertices with an odd degree.


    Corollary 2: A graph with no edges has all vertex degrees equal to zero.

    Statement: In a graph with no edges, every vertex has degree 0.

    Proof:

    • If a graph has no edges, then there are no connections between vertices.
    • Thus, each vertex is isolated, meaning that it has 0 edges incident to it.
    • The sum of degrees of all vertices in the graph is zero, which satisfies the Handshaking Lemma (since the number of edges ∣E∣=0|E| = 0∣E∣=0, the sum of degrees is 2×0=02 \times 0 = 02×0=0).

    4. Practical Implications and Applications of the Handshaking Lemma

    The Handshaking Lemma provides insight into the structure and properties of a graph. It has applications in several areas:

    1. Degree Constraints: The lemma gives us a quick way to check whether certain degree conditions can be satisfied in a graph. For example, in a graph where each vertex has degree 3, the total number of vertices must be even (since the sum of degrees will be 3n3n3n, which must be even).

    2. Network Design: In the design of communication or transportation networks (where vertices represent stations and edges represent direct connections), the lemma helps analyze the number of connections required.

    3. Graph Coloring and Matching: The lemma can also play a role in algorithms related to graph coloring or matching, as it offers a basic understanding of how edges and vertices are connected in a graph.


    5. Example of the Handshaking Lemma

    Consider a simple undirected graph:

        A --- B
        |     |
        C --- D
    
    • Vertices: A,B,C,DA, B, C, DA,B,C,D
    • Edges: {(A,B),(A,C),(B,D),(C,D)}\{ (A, B), (A, C), (B, D), (C, D) \}{(A,B),(A,C),(B,D),(C,D)}

    The degrees of the vertices are:

    • deg(A)=2\text{deg}(A) = 2deg(A)=2
    • deg(B)=2\text{deg}(B) = 2deg(B)=2
    • deg(C)=2\text{deg}(C) = 2deg(C)=2
    • deg(D)=2\text{deg}(D) = 2deg(D)=2

    Sum of degrees:

    deg(A)+deg(B)+deg(C)+deg(D)=2+2+2+2=8\text{deg}(A) + \text{deg}(B) + \text{deg}(C) + \text{deg}(D) = 2 + 2 + 2 + 2 = 8deg(A)+deg(B)+deg(C)+deg(D)=2+2+2+2=8

    Number of edges:

    ∣E∣=4|E| = 4∣E∣=4

    According to the Handshaking Lemma:

    ∑v∈Vdeg(v)=2∣E∣=2×4=8\sum_{v \in V} \text{deg}(v) = 2|E| = 2 \times 4 = 8v∈V∑​deg(v)=2∣E∣=2×4=8

    This verifies the Handshaking Lemma.


    Summary

    • Handshaking Lemma: The sum of the degrees of all vertices in an undirected graph is equal to twice the number of edges.
    • Corollary 1: The number of vertices with odd degree in any undirected graph is always even.
    • Corollary 2: A graph with no edges has all vertex degrees equal to zero.
    • The Handshaking Lemma is useful for understanding basic properties of graphs, especially in terms of vertex degrees and edge connections. It also plays a crucial role in proofs and algorithmic applications related to graphs.
    Previous topic 61
    Graph Traversals
    Next topic 63
    Special Families of Graphs

    Past Papers

    Open this section to load past papers

    Click on Show Past Papers to see past papers.
    On This Page
      Reading Stats
      Est. reading time7 min
      Word count1,252
      Code examples0
      DifficultyIntermediate