A precise but predictable walkthrough of textbook essentials that favors structural clarity over conceptual innovation. It is a reliable academic anchor for beginners, even if it stays strictly within the comfort zone of established theory.
Inmersión profunda
Prerrequisito
- No hay datos disponibles.
Próximos pasos
- No hay datos disponibles.
Inmersión profunda
Graph Theory RevisionAñadido:
graph theory.
To begin with, what is a graph? It is a set of vertices and set of edges. So, for this given graph, you can uh write the set of vertices as U, V, W, and Z. Set of edges as UV, VW, VZ, and WZ.
The kind of graph we are discussing in this session The kind of graph we are discussing in this session is a simple graph.
In simple graph, you have no loops and no multiple edges.
Also, the nature of edge is undirected edge and there is no weight on edge. So, we are not discussing directed graph, pseudo graph, multi graph, weighted graph in this session. We are only going to discuss simple graph, which is undirected and unweighted without any loops or multiple edges.
Okay, [snorts] another terminology is regarding adjacency.
So, if there is an edge between U and V, you say U is adjacent to V and this this relation is symmetric, so we also say V is adjacent to U. So, in other word, you can say U and V are adjacent.
There are another pair more pairs like W and Z, they are adjacent. W and V, they are adjacent. Z and W, they are adjacent. In this next next second graph, V1 V5, they are adjacent. V1 V2, they are adjacent. V2 V5, they are adjacent. V4 V5, they are adjacent and so on.
The next terminology is neighborhood.
So, neighbor of a vertex, suppose you consider the vertex V in the first graph, then what are the neighbor of vertex V? It is a collection of all those vertices which is adjacent to V.
So, U is adjacent to V, W is adjacent to V, Z is adjacent to V. You can also consider a collection of vertices and then talk about neighbor of those subset. In other word, neighbor of, suppose you take the collection of V1 V2 and V4.
Okay?
So, what is this collection of all vertices which are adjacent to V2 or V2 or both? So, [snorts] what are the vertices adjacent to V2? V1 is adjacent.
V3 is adjacent. V5 is adjacent. Next, V4. What are the vertices which are adjacent to V4? V1 is adjacent, already in the group, already in the set.
V3 is adjacent, already in the set. V5 is adjacent, already in the set.
So, this is the neighbor of the subset of vertices.
Next terminology, uh next, we'll discuss the handshaking lemma. What is handshaking lemma?
Handshaking lemma, it is summation of degree of the vertices, where you run the summation over the vertices, this is equal to twice the number of edges, twice the number of edges. What is degree, by the way?
For example, degree of vertex U in the first graph, what it is? One. That means how many edges are attached to U? How many edges? One edges. What about degree of V? Degree of V is three. How many edges are attached to V? Three. In the second graph, what is the degree of V5?
Which is equal to the number of edges attached to V5, which is four.
And so on.
So, we'll verify the handshaking lemma for the first graph. In the first graph, you have degree of U plus degree of V plus degree of W plus degree of Z.
What is degree of U? One. Plus, what is degree of V? Three. Plus, what is degree of W? Two. Plus, what is degree of Z?
Two. This is equal to eight. And how many edges do we have?
How many edges do we have in the first graph?
E1 E2 E3 E4, four edges. So, what is the relation between eight and four? Eight is equal to two times four. Hence, the handshaking lemma is verified for this graph.
You can also verify for the uh second graph. In the second graph, what is the degree of vertex V1? Three.
What is the degree of vertex V2? Three. What is the degree of vertex V3? Three. V4? Three. V5? Four. What is the sum of uh all the vertices?
16.
And you can count the number of edges, it must be eight.
One, one, one, two, three, four, five, six, seven, eight. So, you see the number of edges are eight.
And hence, the handshaking lemma is verified for the second graph.
Next, we discuss path. What is a path?
It is a sequence of vertices such that the corresponding corresponding uh consecutive vertices are adjacent.
For example, in this case, if we write the sequence V1 V2 V3 V4 V5, then graphically, this sequence will represent V1 adjacent to V2, adjacent to V3, adjacent to V4, adjacent to V5. And it is called a path of length four. Length four means number of edges are four and we represent it by P5, that means we have considered five vertices.
You can also draw P4.
So, this will be like one, two, three, four. What does this mean?
One is adjacent to two, two is adjacent to three, three is adjacent to four.
So, it is your choice how you label it.
I will give one more example with different label.
Three, one, two, five, four.
So, this is also a path. If it is representing a path, so what will be its pictorial representation? Three adjacent to one, adjacent to two, adjacent to five, adjacent to four.
Next, cycle. What is a cycle? It is like a path whose end vertices are same.
In other word, cycle of length five can be represented as V1 V2 V3 V4 V5 and you end it with V1.
Graphically, you can represent it as V1 adjacent to V2, adjacent to V3, adjacent to V4, adjacent to V5, adjacent to V1.
Similarly, you have a cycle of length three, this is the smallest cycle.
Then you have cycle of length four.
And so on.
Next, tree. What is a tree?
A tree is a connected graph.
Connected graph and it has no cycle.
What do you mean by connected graph? You pick any two vertices, there exist a path connecting the two and it has no cycle means you start from any vertices, you are not going to come back to the same vertex. This is not allowed and it is it exist for any pair of vertices. For example, a tree on two on two vertices, this is a tree. A tree on one one one vertex, a tree on three vertex, a tree on four vertex, a tree on four vertex, this is also a tree on four vertex, a tree on five vertex.
This is a tree on five vertex, another tree on five vertex.
Uh another tree on five vertex.
Next, we can have a tree on six vertices.
This is a tree on six vertices.
This is also a tree on six vertices and so on. So, you see that you pick any two vertex, there exist Suppose you pick this vertex X and this vertex Y? There exist a path from this vertex you can move to this vertex, then this vertex, then this vertex. So, you see there exist a path connecting the two vertices. So, it is a connected graph. Plus, there is no cycle no cycle in me It means you begin from any vertex, you will never come back to the same vertex using a cycle or path.
Okay, just a quick reminder.
When you're discussing about path in a graph, when you're discussing a path in a graph, then you have to ensure that all the vertices are distinct. For example, suppose you consider this graph.
Name it as 1 2 3 4 5 6. And someone ask you that write a path from 1 to 4. So, what will be the path?
1 2 3 4. You see that all the vertices are distinct. Another path from 1 to 4 would can be 1 6 5 4. Another path from 1 to 4 can be 1 2 5 4. So, you see whatever path you are looking for in a graph, it must contain a sequence of distinct vertices.
And that sequence must satisfy the property that consecutive terms are adjacent.
Similarly, if you're looking for a cycle in the graph, similarly, for example, you're looking for a cycle that starts with two.
So, this is a cycle.
These are all paths.
Cycles on this graph, you start with two. Two, you go to three, then go to four, then go to five, then end at two.
Another cycle can be start with two, go to one, go to six, go to five, and go back to two. Another cycle can be go start with two, go to three, go to four, five, six, one, and two. So, these are all cycles. This cycle is of length four. This cycle is of length 1 2 3 4 5 6.
Clear? So, in this case also, you see all the vertices are distinct except the end one because they are coming back to the same vertex.
Okay.
>> [clears throat] >> Complete graph.
What is a complete graph? In a complete graph, all possible pair of vertices are adjacent. This is a complete graph.
Uh we represent it using KN. When N is equal to one, then you get a single vertex. When N is equal to two, N equal to two means two vertices. You get two vertices, and all pair of vertices are adjacent. K3 you get the three vertices, and all pair of vertices are adjacent. So, this is your complete graph on three vertices.
Similarly, K4, you take four vertices, and all pair of vertices are adjacent.
Similarly, K5 you take five vertices, and you see all pair of vertices are adjacent.
You can use handshaking lemma to to calculate the number of uh edges, and you can also use a combination to calculate the number of edges. So, if you use the combination, you uh what is the rule for complete graph?
That all pair of vertices are adjacent.
How many ways you can pick the pair of vertices? N choose two. If you use handshaking lemma, you still you will get the same value.
And know that this is also a regular graph.
So, what is the regularity of KN? N minus one. What is a regular graph?
The number of attachment the number of edges associated with every vertex are same.
And how many edges are attached with a vertex? N minus one. And how many such vertices are there? N vertices.
So, this is a regular graph. This is a three regular graph. How many What is the degree of every vertex? 1 2 3 3 3 3 3 and 3. So, this is a three regular graph. This is also a three regular graph.
Bipartite graph. What is a bipartite graph? You have a graph, and you are able to partition the vertices into two parts such that in each part, no pair of vertices are adjacent. And if adjacency exist, it will exist between the pair of vertices from two different parts. So, pictorially, it represents like this.
For example, suppose you consider this graph.
V1 V2. Is it bipartite? Yes, it is bipartite. You can put V1 in part one, V2 in part two. This is your V1. This is your V2 in part two. And this is an edge.
What about this graph?
V1 V2.
Uh for simplicity, I will use the label 1 2 3.
So, put one in first part.
So, one is adjacent to two. So, two will go in the second part. Where will three go?
Where will three go? It is not possible to put in part one because three should not be adjacent to one. Can you put three in part two? No, because three is adjacent to two as well. So, this is not bipartite. This is not bipartite. Let's consider one more example.
1 2 3 4. Is it a bipartite graph? Let's figure out.
This is your part one. This is your part two. Put vertex one without loss of generality in part one. Where will vertex two go? Two is adjacent to one, so it will go here.
Where will vertex four go? Four is adjacent to one, so it cannot belong to part one. So, it must go to part two.
So, is two and four adjacent? No. So, both can lie in part two. What about vertex three? Vertex three is adjacent to two, so it cannot belong to part two.
Can it go to part three? Yes, it can go to part three because three is not adjacent to one. Now, you can draw the edges.
So, this is your bipartite graph.
Uh In general, if you talk about cycle, if it is odd cycle, then it is not bipartite.
This is not bipartite.
You can try to figure it out by yourself. This is part one. This is your part two. Vertex one will go here.
Vertex two will go here.
Vertex three will go here. Vertex four will go here. Where will vertex five go?
It cannot go to part one because it is adjacent to one. It cannot go to part two because it is adjacent to four. So, in general, this is a odd cycle. It is not bipartite. There is a result given in the slides. You can read those results.
Euler and Hamiltonian path.
Uh it depends on which book you are studying. So, you have to be careful about the terminology used. You have a term path, then you have a term trail.
Then you have a term cycle, which is treated as closed path. That means end vertices are same.
In trail, uh uh in uh circuit, what is circuit? This is treated as closed trail.
So, if you remember what is a path? It is a sequence of distinct vertices such that such that consecutive vertices are adjacent. What is a trail?
It is also a sequence, but in this case, edges are not repeated, but vertices may be repeated. Vertices may be repeated.
Uh for clarity, you can study the definition of walk. With respect to walk, you can define trail and path. So, in other word, for simplicity, for the purpose of this session, we'll look path as a sequence of vertices. We'll look trail as a sequence of edges such that edges are distinct. Vertices may be distinct or may not be. In path, vertices are distinct. So, here, for our simplicity, for this session, sequence of vertices, distinct vertices, sequence of distinct vertices such that consecutive vertices are adjacent. And for simplicity, trail is sequence of distinct edges.
Vertices may be repeated in this sequence. So, in uh this given graph, can you find Hamiltonian path, Euler Eulerian trail, Hamiltonian cycle, or Eulerian circuit?
What is Hamiltonian path?
Hamiltonian path is a path which consist all the vertices. What is Eulerian trail? It is a trail which consist all the edges. What is Hamiltonian cycle? It is a cycle which consist all the vertices. What is Eulerian circuit? It is a circuit which consist of all the edges.
So, let's begin.
Looking for Hamiltonian path, you begin with one, then go here, two, then go here, three, then go here, four, then go here, five.
So, this is your sequence, 1 2 3 5 4.
This is a path, so you have a Hamiltonian path. If you add one more vertex, you will also get Hamiltonian cycle. So, this is your Hamiltonian path, and this one is Hamiltonian cycle. Does it also have Eulerian trail?
Okay.
So, you have E1, E2, E3. After E3, where will you go?
You can go from five to two, E4. You can go from five to one, you can go from five to four. It is not going to help you. If you remember in the uh lecture, we have discussed that if you have Eulerian trail, this is only possible when there is only two vertices, two vertices having odd degree. Rest all the vertices must be even. This is the criteria for the existence of Eulerian trail.
So, how many vertices you have of degree odd? Vertex one degree three, vertex two degree three, vertex three degree three.
So, you have number you have four vertices having degree three, so it does not have Eulerian trail, and definitely does not have Eulerian circuit. For Eulerian circuit, what is what was the criteria?
That all the vertices, all the vertices have even degree.
Even degree, then only Eulerian circuit will exist. Now, let's look at the second uh graph. Does it have Eulerian trail or Eulerian circuit? See, the vertex one has degree four, vertex two, three, four, five all have degree two. Therefore, it does not have Eulerian trail. Eulerian trail means you cannot restart from a vertex and end at another vertex covering all the edges.
But, it has Eulerian circuit. You see, you start from anywhere you wish, doesn't matter. You start from here, V3, go to V2, from V2, go to V1, from V1, go to V4, from V4, go to V5, from V5, go to V1, from V1, go go back to V3.
So, this is your Eulerian circuit.
Eulerian circuit.
V3 V2 V1 V4 then V5, then V1, then coming back to V3.
Similarly, next graph, in the third graph, can you find Eulerian trail or Eulerian circuit? You have vertex A whose degree is three. You have vertex B whose degree is three.
And all the other vertices have degree even degree. E has degree two, D has degree four, C has degree four. So, it does not have Eulerian circuit, but it has Eulerian path. So, what you will do?
You will start from A and end at B, or you start from B and end at A. Let's begin.
You start from A, A to D, D to E, E to C, C to B, B to D, D to C, C to A, and A to B.
So, all the edges are covered.
So, you can write it down here.
Eulerian trail A to B, B to E, E to C, C to B, B to D, D to C, C to B, uh C to A, and A to B.
A D E C B D C A B.
Okay.
Next.
This is just for exercise. You can try to figure out whether it has Hamiltonian cycle, circuit, Eulerian trail, or Eulerian circuit. Graph coloring. What is graph coloring? You have to ensure that you use the color such that no adjacent vertices are given same color. For example, if you use this two this graph, then this one can be colored red, this one can be colored black, and so on.
Suppose you consider this graph, so this can be colored using yellow, this can be colored using green, this can be colored using white, and this can be colored using black.
So, this is the rule you should follow while coloring the vertices. And what is chromatic number?
What is chromatic number?
Chromatic number is the minimum number of color required to color all the vertices. In this case, chromatic number is we represent it is by chi. Chromatic number is two.
In this case, chromatic number is three.
Can you color this graph using two color? No. Minimum color required to color this graph is three. Similarly, what about this graph?
Chromatic number of this cyclic graph C5.
You take it box, circle, box, circle, and then you cannot have neither have a box because two boxes cannot be same.
Box I'm representing as color, and circle I'm representing as different color. You can neither have circle here, nor box here. So, you will require some other color here. So, the chromatic number is three.
Similarly, can you find the chromatic number of this graph?
So, let me label the color as 1 2 3 4 instead of the actual color. So, color one, color two, this I can give color one, this I can give color three, because I can never not neither assign it one, nor assign it as two. This I can give color as one, this I can give color as three. So, what is the chromatic number? The chromatic number is three for this graph, because three is the minimum number of color required. You cannot color it using two color.
Next, we discuss graph representation.
We'll only discuss adjacency matrix and incidence matrix.
Incidency dence matrix.
So, what is adjacency matrix?
It is a n by n matrix such that the entries at I {comma} J position is equal to one if I and J are adjacent, otherwise, it is zero. Otherwise, it is zero. For example, consider this graph.
Consider this graph.
1 2 3 4. What you need to do? You need to find form a matrix, label the rows, label the rows, and columns in the same order with respect to vertices 1 2 3 4. You also label the column in the same order 1 2 3 4. Now, if one and one is connected, put one, otherwise zero. So, in this graph, one is we do not have loop, so definitely one and one it is not adjacent. One is adjacent to two, one is adjacent to four, one is not adjacent to three.
Similarly, two is adjacent to one, two is not adjacent to two, because we do not have loop here. Two is adjacent to three, and two is not adjacent to four.
Similarly, three is adjacent to not adjacent adjacent to one, adjacent to two, not adjacent to three, but adjacent to four. Similarly, four adjacent to one, not with two, adjacent to three, not with four itself. If you see it clearly, adjacency matrix is a symmetric matrix, and it has a several properties.
We are not going to discuss all those.
Incidence matrix. For the same graph, what will be the incidence matrix?
You have to write the you have to label the rows with respect to vertices and you have to label the columns with respect to edges. So first name the edges. This is edge number one.
This is edge number two. This is edge number four. This is edge number three.
E1, E2, E3, E4. So it depends on the how you label the edges and vertices.
Accordingly, your incidence matrix will be formed.
So one is incident on E1.
Yes, put it one. One is incident on E4.
Yes, put it one. Remaining will be zero.
Two is incident on E1. Yes.
Two is incident on E2. Yes, remaining will be zero.
This one will be zero. This one will be zero. Three incident on E2. Yes, this one will be zero.
So you can go column wise. You can look at E3. What E3 is incident on three and four. Three and four. What E4 is incident on one and four. One and four. So you see that in every column you only have two non-zero entry. Rest all the entries will be zero, which is which is uh very clear from the geometrical representation because every edge has exactly two vertices on which it is incident on.
So therefore every column has only two entries. You can answer few of the basic questions. For example, what is the degree of two?
Using the adjacency matrix, look at the row two. Add all the non-zero entries. You will get two. So the degree is two.
Degree of two is two.
You look at the incidence matrix. Can you find the degree of two? Yes, you can find the degree of two. What is the degree of two?
How many edges are adjacent with two? E1 is adjacent. E2 is adjacent. Hence two.
So both graph is able to give you the questions regarding the degree of vertices.
Videos Relacionados
Escaping the Fog
LogicLemurGaming
760 views•2026-06-03
Olympiad Mathematics | Indian | Can You Solve This One?
PhilCoolMath
650 views•2026-06-03
A Brutal Radical Expression Made Easy! The Shortcut Changes Everything.
tamoshop
112 views•2026-06-02
V : jee main /advance class 11 mathematics : Binomial Theorem class-1 ( 29 may 2026 )
dcamclassesiitjeemainsadva9953
125 views•2026-05-29
Is This Pentomino Tileable?
3cycle
241 views•2026-05-30
This Sudoku Has Many Lines!!
CrackingTheCryptic
2K views•2026-05-29
Olympiad Mathematics | Indian Can You Solve This One?
PhilCoolMath
268 views•2026-06-02
Olympiad Mathematics | Indian | Can You Solve This?
PhilCoolMath
669 views•2026-06-02











