MCQ IN COMPUTER SCIENCE & ENGINEERING

COMPUTER SCIENCE AND ENGINEERING

SOFTWARE ENGINEERING

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
The size of the graph matrix is
A
Number of paths in the flow graph
B
Number of edges in the flow graph
C
Number of nodes in the flow graph
D
Number of independent paths in the flow graph
Explanation: 

Detailed explanation-1: -A graph matrix is a square matrix whose rows and columns are equal to the number of nodes in the flow graph. Each row and column identifies a particular node and matrix entries represent a connection between the nodes.

Detailed explanation-2: -The size of adjacency matrix is equal to the number of vertices in the graph. It is a square matrix (that is the number of rows is equal to the number of columns).

Detailed explanation-3: -A graph matrix is a square matrix whose size represents the number of nodes in the control flow graph.

Detailed explanation-4: -In graph theory and computer science, an adjacency matrix is a square matrix used to represent a finite graph. The elements of the matrix indicate whether pairs of vertices are adjacent or not in the graph. In the special case of a finite simple graph, the adjacency matrix is a (0, 1)-matrix with zeros on its diagonal.

Detailed explanation-5: -Graph matrix is a square matrix whose size (i.e., number of rows and columns) is equal to the number of nodes on the flow graph. Each row and column corresponds to an identified node, and matrix entries correspond to connections (an edge) between nodes.

There is 1 question to complete.