The first row and first column of the matrix can be initially set to 0.
( , ) 0, m 0 n 0 Sim m n if or = = = Matrix filling: Assign the values to the remnant elements in the matrix as the following equation: There are some synonyms belonging to the same concept represented in one vertex.