DIZNR INTERNATIONAL

Discrete mathematics for gate- Relation b/w Vertices and Edges in Simple graph

Discrete mathematics for gate- Relation b/w Vertices and Edges in Simple graph

https://www.gyanodhan.com/video/7B4.%20GATE%20CSEIT/Discrete%20Mathematics%201/371.%20Day%2007Part%2007-%20Discrete%20mathematics%20for%20gate-%20Relation%20bw%20Vertices%20and%20Edges%20in%20Simple%20graph.mp4

Discrete Mathematics for GATE – Relationship Between Vertices and Edges in a Simple Graph

In graph theory, a simple graph is an unweighted, undirected graph that does not contain multiple edges or self-loops. The relationship between vertices (V) and edges (E) in a simple graph follows several important properties and theorems.

1. Basic Terminology

2. Handshaking Theorem

For any undirected graph, the sum of the degrees of all vertices is twice the number of edges:

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

Example:
Consider a graph with 4 vertices and the following degrees:
deg(v1)=2deg(v_1) = 2, deg(v2)=3deg(v_2) = 3, deg(v3)=3deg(v_3) = 3, deg(v4)=2deg(v_4) = 2.
Then,

2+3+3+2=10=2×52 + 3 + 3 + 2 = 10 = 2 \times 5

So, the graph has 5 edges.

3. Bounds on Number of Edges

  1. Minimum Edges: A graph with nn vertices can have as few as 0 edges (if it’s an edgeless or null graph).
  2. Maximum Edges in a Simple Graph (Complete Graph):
    • A complete graph KnK_n has every vertex connected to every other vertex.
    • The number of edges in a complete graph is: ∣E∣=n(n−1)2|E| = \frac{n(n-1)}{2}

4. Relationship Between Vertices and Edges in Special Graphs

Graph Type Vertices (V) Edges (E) Remarks
Null Graph nn 0 No edges
Path Graph nn n−1n-1 Single path
Cycle Graph nn nn Closed path
Complete Graph KnK_n nn n(n−1)2\frac{n(n-1)}{2} Maximum edges possible

5. Important GATE Questions

Q1: What is the maximum number of edges in a simple graph with 6 vertices?
Solution:

Emax=6(6−1)2=6×52=15E_{max} = \frac{6(6-1)}{2} = \frac{6 \times 5}{2} = 15

So, the maximum edges = 15.

Q2: A simple graph has 7 vertices, and the sum of all vertex degrees is 18. Find the number of edges.
Solution (Handshaking Theorem):

∑deg(v)=2∣E∣\sum deg(v) = 2|E| 18=2∣E∣⇒∣E∣=918 = 2|E| \Rightarrow |E| = 9

So, the graph has 9 edges.

6. Conclusion

 A simple graph follows basic properties like the handshaking theorem.
 The maximum number of edges in a simple graph is n(n−1)2\frac{n(n-1)}{2}.
 These properties help in solving GATE problems related to graph theory.

 Need more GATE-level problems on this topic? Let me know!

Discrete mathematics for gate- Relation b/w Vertices and Edges in Simple graph

GRAPH THEORY WITH APPLICATIONS

In Discrete Mathematics, especially in the context of GATE CSE, understanding the relationship between vertices and edges in a simple graph is essential. Let’s break it down:


Definition: Simple Graph

A simple graph is an undirected graph that:


Basic Properties – Vertices (V) and Edges (E)

Let:


1. Maximum Number of Edges in a Simple Graph

For a simple undirected graph with nn vertices:

Maximum number of edges,Emax=n(n−1)2\text{Maximum number of edges}, E_{\text{max}} = \frac{n(n-1)}{2}

This is because each pair of distinct vertices can have at most one edge.


2. Sum of Degrees of All Vertices

The degree of a vertex is the number of edges incident on it.

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

This is known as the Handshaking Theorem.


3. Minimum and Maximum Edges


Example:

Let’s say we have a simple graph with n=4n = 4 vertices.


Application in GATE Questions

You may be asked:


Key Concepts to Revise:


Would you like a diagram or GATE-style question on this topic?

Discrete mathematics for gate- Relation b/w Vertices and Edges in Simple graph

Mathematics (Discrete Structure).pdf