Congratulations on the publication of your paper. It is really a great job and is very enlightening to me.
After debugging your code, I have some trouble understanding the difference of the Spatial_matrix.csv and Spatial_matrix_rook.csv .
I guess Spatial_matrix.csv means 0/1 adjacent matrix generated by (OD) flow,
while Spatial_matrix_rook.csv means geographic 0/1 adjacency matrix generated by Rook-type contiguity relationship.
Am I right ?
Looking forward to your reply, thank you sincerely !