JFE301Xuất hiện trong 1 đề thi
An adjacency matrix is used for representing which vertices of a directed or undirected graph are adjacent to which other vertices. Which of the following is the appropriate matrix that can represent the directed graph below? \nmermaid\ngraph LR\nA --> B\nB --> A\nB --> C
Các lựa chọn
A$\begin{bmatrix}0 & 1 & 0 \\ 1 & 0 & 1 \\ 0 & 0 & 0\end{bmatrix}$
B$\begin{bmatrix}1 & 1 & 1 \\ 1 & 1 & 1 \\ 0 & 0 & 1\end{bmatrix}$
C$\begin{bmatrix}0 & 1 & 1 \\ 1 & 0 & 1 \\ 0 & 0 & 1\end{bmatrix}$
D$\begin{bmatrix}1 & 0 & 1 \\ 0 & 1 & 0 \\ 1 & 1 & 1\end{bmatrix}$