00:00First of all, let's talk about the edges of the graph. In the graph, there are two types of edges,
00:04which is the unidirectional edge. Unidirectional edge says that if...
00:12There is a unidirectional edge in two nodes. So we can go from one node to the other node, but
00:17we can't come back from the other node. How can I imagine this? We have seen a one-way road.
00:25We can only go from the other one-way road, but we can't come back from the other one-way
00:28road. We can't come back from the other one-way road. We can't come back from the other one-way
00:30road. We can't come back from the other one-way road. So in this way, unidirectional edge is a one
00:35-way road.
00:38We can only go to the B vertex. We can't reach A to B. Besides, the second type of edge
00:44is undirected edge. Undirected edge means that it doesn't have any direction. It's the same thing.
00:55So we call bi-directional edge. Bi-directional means that we can go ahead and go back. So I have
01:04one A node and one B node, so I can go from A to B to A to B to
01:08A to B to B to B to B to B to B to B. So bi-directional is simply
01:12as a single line. It means that it is undirected, no direction. Direction is equivalent to saying that both directions
01:21are in a graph.
01:22So there are two ways that we have graphs. Here, the graph inside the unidirectional edges, we call it unidirectional
01:29graph. Or the graph inside the unidirectional edges, we call it unidirectional graph. If we call it undirected graph, we
01:43call it undirected graph. If we call it undirected graph, we call it undirected graph. If we call it undirected
01:47graph, we call it undirected graph. If we call it undirected graph, we call it undirected graph. If we call
01:48it undirected graph, we call it undirected graph. If we call it undirected graph, we call it undirected graph. If
01:50we call it undirected graph. If we call it undirected graph, we call it undirected graph. If we call it
01:52undirected graph. If we call it undirected graph, we call it undirected graph. If we call it undirected graph. If
01:53we call it undirected graph. If
01:53direction will be clear in every single node, every single vertex in its edges. If I use an undirected graph
02:00example, there will be no direction of my nodes, just a connection will be formed. So this is my directed
02:07graph and this is my undirected graph. Besides, every edge in this graph can be a weight. Weight means that
02:16this is my city A, I have to go to B.
02:20So, if the path of A to B is 10 km, the weight of this edge will be 10. Meaning,
02:25the weight of this edge, the weight or the value of this associated property, we will call it 10. Either
02:33we can visualize it in a distance or not, but we can say that when the cost of A to
02:37B will be 10. So, if there is a connection between A to B,
02:46If the connections are my edges, then the edges can also be associated with its value. It is not necessary
02:52that it is always possible. It can be associated with it or it can be associated with it. So, these
02:57graphs in which each edge has a weight, we call it weighted graph. And in which graph we call it
03:07unweighted graph. Now, this weighted graph is also undirected.
03:13And this is my unweighted graph. Unweighted is also undirected. In the graph, there are different variety of combinations. There
03:21may be a graph directed or waited. There may be no directed or waited. Or there may be no directed
03:27or waited. In this way, we get a lot of different combinations of graph based upon how the edge is
03:33defined. We have seen 4 types of edges. We have seen one edge in which our direction is. One edge
03:41in which our direction is.
03:43wait oh time.
03:44Now, the direction can be done or not. Weight can be done or not. So it depends on what your
03:50situation defined, what your problem defined. We will get to know that which type of graph is formed. And another
03:58special point here is that the weighted graph is not necessary that weight is always positive. The weight can also
04:04be associated with my negative value. In fact, this weight can also be equal to 0. So this weight doesn't
04:11mean weight.
04:14We call weight in terms of graph terminology. If we want these things, we can make notes on a basic
04:24page. These are basic properties in the graph. What is the vertex? What is the edge? What is the type
04:31of edge? What is the type of graph?