A graph is a finite set of objects called nodes together wit

A graph is a finite set of objects called nodes, together with some paths between some of the nodes, as illustrated below. A path of length one is a path that directly connects one node to another. A path of length k is a path made up of k consecutive paths of length one. The same length one path can appear more than once in a longer path; for example, 1-2-1 is a path of length two from node 1 to itself in the example below When the nodes have been numbered from 1 to n, the adjacency matrix A of the graph is defined by letting a-1 if there is a path of length one between vertices i and j and a 0 otherwise Example: verify that the graph below has the matrix A shown as its adjacency matrix. 010 0 0 0 1010 0 1 0101 0 0 | 001011 000 1 0 1 01 01 1 0 4 2 Theorem (Interpretation of the powers of an adjacency matrix): If A is the adjacency matrix of a graph, then the (ij) entry of A* is a nonnegative integer which is the number of paths of lengthk from node i to nodej in the graph

Solution

Answer for Question1.

The (6,3) entry of A2 indicated that there are two paths of length two from node 6 to node 3. The expression for (6,3) justifies this as follows.

i.e., a61a13 + a62a23 + a63a33 + a64a43 + a65a53 + a66a63

= (0)(0) + (1)(1) + (0)(0) + (1)(1) + (1)(0) + (0)(0) = 2.

Here, {a61a13 , a63a33 , a66a63 } = (0)(0) means there is no path (intermediate node 1, 3, 6 respectively) from node 6 to node 3.

Here, a62a23 = (1)(1) means there is a path from node 6 to node 2 and node 2 to node 3.

Here, a64a43 = (1)(1) means there is a path from node 6 to node 4 and node 4 to node 3.

Here, a65a53 = (1)(0) means there is a path from node 6 to node 5 and but no path from node 5 to node 3.

Answer for Question2.

The adjacency matrix A is as follows.

The A2 matrix can be calculated by multiplying matrix A with matrix A. The A2 matrix is as follows in the table.

In this A2 matrix, the value of each field represents the number of path in between a pair of nodes with one intermediate node.

The A3 matrix can be calculated by multiplying matrix A with matrix A2. The resulted A3 matrix is as follows in the table.

In this A3 matrix, the value of each field represents the number of path in between a pair of nodes with two intermediate nodes.

0 1 0 0 0 0
1 0 1 0 0 1
0 1 0 1 0 0
0 0 1 0 1 1
0 0 0 1 0 1
0 1 0 1 1 0

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site