@dhavalpotdar
In some of the images, the dimension of the adjacency matrix is not matching with the no of words in the image. For example -
Suppose the image has 91 words then the adjacency matrix was of shape (90, 90) instead of (91, 91).
One word/node is cut off from the adjacency matrix.