Math, asked by pthakur6557, 10 months ago

Which one of the following cab be counted with the help of graph?

Answers

Answered by Anonymous
1

Answer:

Step-by-step explanation:

The graph is given as adjacency matrix representation where value of graph[i][j] as 1 indicates that there is an edge from vertex i to vertex j and a value 0 indicates no edge from i to j.

For example consider the following graph. Let source ‘u’ be vertex 0, destination ‘v’ be 3 and k be 2. The output should be 2 as there are two walk from 0 to 3 with exactly 2 edges. The walks are {0, 2, 3} and {0, 1, 3}

Similar questions