Graph, Graph Algorithm.
adjacency matrices as shown in the figure below. In an adjacency matrix, the first row and the first column represent vertices, colored in blue, and other rows and columns represent edges, colored in white. For example, if there is an edge between vertices, the value is set to 1, and 0 otherwise.