in Graph Theory recategorized by
3,921 views
15 votes
15 votes

Write the adjacency matrix representation of the graph given in below figure.

in Graph Theory recategorized by
3.9k views

4 Answers

11 votes
11 votes
Best answer
$$\begin{array}{|c|c|c|c|c|c|} \hline \textbf{} & \textbf{$P_1$}& \textbf{$P_2$} & \textbf{$P_3$} & \textbf{$P_4$} & \textbf{$P_5$}\\\hline \textbf{$P_1$} & \text{$0$}& \text{$1$} & \text{$0$} & \text{$0$} & \text{$1$}\\\hline \textbf{$P_2$} & \text{$0$}& \text{$0$} & \text{$0$} & \text{$1$} & \text{$0$}  \\\hline \textbf{$P_3$} & \text{$1$}& \text{$0$} & \text{$0$} & \text{$0$} & \text{$0$}  \\\hline \textbf{$P_4$} & \text{$0$}& \text{$0$} & \text{$1$} & \text{$0$} & \text{$1$} \\\hline \textbf{$P_5$} & \text{$0$}& \text{$1$} & \text{$0$} & \text{$0$} & \text{$0$} \\\hline \end{array}$$
edited by

3 Comments

Sir can i put p1 to p1 1.p1 to p1 is also a path
0
0
If self loop is in p1 then we can write .
0
0
thanks
0
0
3 votes
3 votes
put $1$ in all places in adjacency marix according to direction given in edges for ex $p1$ to $p5$ there is path going so put $1$ in $p1$ row and $p5$ col but don't put $1$ in $p5$ to $p1$ because there is no path
edited by
0 votes
0 votes
to be clear that arrow is from p3 to p1
0 votes
0 votes

This is also a possibility based on the convention given in “Introduction to Graph Theory” by Douglas West.

Related questions

Quick search syntax
tags tag:apple
author user:martin
title title:apple
content content:apple
exclude -tag:apple
force match +apple
views views:100
score score:10
answers answers:2
is accepted isaccepted:true
is closed isclosed:true