Answer
348k+ views
Hint: In the adjacency matrix of a directed graph the in degree of a vertex is given by the sum of the entries of the respective column and the out degree of a particular vertex is given by the sum of the entries of the row of the respective column.
Complete step-by-step answer:
Adjacency matrix of a directed graph
An adjacency matrix is a matrix which describes a graph by representing which vertices are adjacent to which other vertices.
If G is a graph of order n , then its adjacency matrix is a square matrix of order n, where each row and column correspond to a vertex of G
The element ${a_{ij}}$of such a matrix specifies the number of edges from vertex i to vertex j.
An example of a directed graph is given
Its adjacency matrix can be given by
$\begin{gathered}
{\text{ }}\begin{array}{*{20}{c}}
0&1&2&3
\end{array}{\text{ 4}} \\
\begin{array}{*{20}{c}}
0 \\
1 \\
2 \\
\begin{gathered}
3 \\
4 \\
\end{gathered}
\end{array}\left[ {{\text{ }}\begin{array}{*{20}{c}}
0 \\
0 \\
0 \\
\begin{gathered}
0 \\
0 \\
\end{gathered}
\end{array}{\text{ }}\begin{array}{*{20}{c}}
1 \\
0 \\
0 \\
\begin{gathered}
0 \\
0 \\
\end{gathered}
\end{array}{\text{ }}\begin{array}{*{20}{c}}
1 \\
1 \\
0 \\
\begin{gathered}
0 \\
0 \\
\end{gathered}
\end{array}{\text{ }}\begin{array}{*{20}{c}}
0 \\
0 \\
1 \\
\begin{gathered}
0 \\
0 \\
\end{gathered}
\end{array}{\text{ }}\begin{array}{*{20}{c}}
0 \\
1 \\
0 \\
\begin{gathered}
1 \\
0 \\
\end{gathered}
\end{array}{\text{ }}} \right] \\
\end{gathered} $
In degree of an adjacency matrix
The sum of entries in the column j of the adjacency matrix equals to the in degree of the vertex ${v_j}$
Now with the given graph
We can see the in degree of ${v_0}$ = sum of entries in column 0 = 0
We can see the in degree of ${v_1}$ = sum of entries in column 1 = 1
We can see the in degree of ${v_2}$ = sum of entries in column 2 = 2
We can see the in degree of ${v_3}$ = sum of entries in column 3 = 1
We can see the in degree of ${v_4}$ = sum of entries in column 4 = 2
Out degree of an adjacency matrix
The sum of entries in the row i of the adjacency matrix equals to the out degree of the vertex ${v_i}$
From the above definitions we get that , for the adjacency matrix of a directed graph the row sum is the out degree and the column sum is the in degree.
Now with the given graph
We can see the out degree of ${v_0}$ = sum of entries in row 0 = 2
We can see the out degree of ${v_1}$ = sum of entries in row 1 = 2
We can see the out degree of ${v_2}$ = sum of entries in row 2 = 1
We can see the out degree of ${v_3}$ = sum of entries in row 3 = 1
We can see the out degree of ${v_4}$ = sum of entries in row 4 = 0
The correct option is B.
Note: The adjacency matrix of a directed graph can be asymmetric. One can define the adjacency matrix of a directed graph either such that
a non-zero element ${A_{ij}}$ indicates an edge from i to j or
it indicates an edge from j to i.
Complete step-by-step answer:
Adjacency matrix of a directed graph
An adjacency matrix is a matrix which describes a graph by representing which vertices are adjacent to which other vertices.
If G is a graph of order n , then its adjacency matrix is a square matrix of order n, where each row and column correspond to a vertex of G
The element ${a_{ij}}$of such a matrix specifies the number of edges from vertex i to vertex j.
An example of a directed graph is given
![seo images](https://www.vedantu.com/question-sets/a0fa5cf1-5e84-49a4-a6eb-d841847052d04499274238643099560.png)
Its adjacency matrix can be given by
$\begin{gathered}
{\text{ }}\begin{array}{*{20}{c}}
0&1&2&3
\end{array}{\text{ 4}} \\
\begin{array}{*{20}{c}}
0 \\
1 \\
2 \\
\begin{gathered}
3 \\
4 \\
\end{gathered}
\end{array}\left[ {{\text{ }}\begin{array}{*{20}{c}}
0 \\
0 \\
0 \\
\begin{gathered}
0 \\
0 \\
\end{gathered}
\end{array}{\text{ }}\begin{array}{*{20}{c}}
1 \\
0 \\
0 \\
\begin{gathered}
0 \\
0 \\
\end{gathered}
\end{array}{\text{ }}\begin{array}{*{20}{c}}
1 \\
1 \\
0 \\
\begin{gathered}
0 \\
0 \\
\end{gathered}
\end{array}{\text{ }}\begin{array}{*{20}{c}}
0 \\
0 \\
1 \\
\begin{gathered}
0 \\
0 \\
\end{gathered}
\end{array}{\text{ }}\begin{array}{*{20}{c}}
0 \\
1 \\
0 \\
\begin{gathered}
1 \\
0 \\
\end{gathered}
\end{array}{\text{ }}} \right] \\
\end{gathered} $
In degree of an adjacency matrix
The sum of entries in the column j of the adjacency matrix equals to the in degree of the vertex ${v_j}$
Now with the given graph
We can see the in degree of ${v_0}$ = sum of entries in column 0 = 0
We can see the in degree of ${v_1}$ = sum of entries in column 1 = 1
We can see the in degree of ${v_2}$ = sum of entries in column 2 = 2
We can see the in degree of ${v_3}$ = sum of entries in column 3 = 1
We can see the in degree of ${v_4}$ = sum of entries in column 4 = 2
Out degree of an adjacency matrix
The sum of entries in the row i of the adjacency matrix equals to the out degree of the vertex ${v_i}$
From the above definitions we get that , for the adjacency matrix of a directed graph the row sum is the out degree and the column sum is the in degree.
Now with the given graph
We can see the out degree of ${v_0}$ = sum of entries in row 0 = 2
We can see the out degree of ${v_1}$ = sum of entries in row 1 = 2
We can see the out degree of ${v_2}$ = sum of entries in row 2 = 1
We can see the out degree of ${v_3}$ = sum of entries in row 3 = 1
We can see the out degree of ${v_4}$ = sum of entries in row 4 = 0
The correct option is B.
Note: The adjacency matrix of a directed graph can be asymmetric. One can define the adjacency matrix of a directed graph either such that
a non-zero element ${A_{ij}}$ indicates an edge from i to j or
it indicates an edge from j to i.
Recently Updated Pages
The letters of the word SOCIETY are placed at random class 12 maths CBSE
![arrow-right](/cdn/images/seo-templates/arrow-right.png)
The letters of the word GUITAR are arranged in all class 12 maths CBSE
![arrow-right](/cdn/images/seo-templates/arrow-right.png)
The letters of the word CRICKET are permuted in all class 12 maths CBSE
![arrow-right](/cdn/images/seo-templates/arrow-right.png)
The letters of the word ARTICLE are arranged in all class 12 maths CBSE
![arrow-right](/cdn/images/seo-templates/arrow-right.png)
The length x of a rectangle is increasing at 5cms and class 12 maths CBSE
![arrow-right](/cdn/images/seo-templates/arrow-right.png)
The length x of a rectangle is decreasing at the rate class 12 maths CBSE
![arrow-right](/cdn/images/seo-templates/arrow-right.png)
Trending doubts
Which are the Top 10 Largest Countries of the World?
![arrow-right](/cdn/images/seo-templates/arrow-right.png)
Difference Between Plant Cell and Animal Cell
![arrow-right](/cdn/images/seo-templates/arrow-right.png)
Give 10 examples for herbs , shrubs , climbers , creepers
![arrow-right](/cdn/images/seo-templates/arrow-right.png)
Fill the blanks with the suitable prepositions 1 The class 9 english CBSE
![arrow-right](/cdn/images/seo-templates/arrow-right.png)
Write a letter to the principal requesting him to grant class 10 english CBSE
![arrow-right](/cdn/images/seo-templates/arrow-right.png)
Difference between Prokaryotic cell and Eukaryotic class 11 biology CBSE
![arrow-right](/cdn/images/seo-templates/arrow-right.png)
What is the full form of AD a After death b Anno domini class 6 social science CBSE
![arrow-right](/cdn/images/seo-templates/arrow-right.png)
Change the following sentences into negative and interrogative class 10 english CBSE
![arrow-right](/cdn/images/seo-templates/arrow-right.png)
Name 10 Living and Non living things class 9 biology CBSE
![arrow-right](/cdn/images/seo-templates/arrow-right.png)