I\'m creating a function in pyqgis that generates an adjacency matrix of all the polygons in a specific layer. However, I\'m having problems with the indexes of this matrix: