for non square matrix the dynamic function has some problem due to the absence of attributes definition in the nx.Graph().edges(), this bug is solvable:
the matrix_graph function should assign attributes for a square matrix with dimension of the largest axe, then assign 1 to the diagonal value of the matrix (the node can move to itself only) ad 0 to all the rest.
This problem is absent in case of square matrix
for non square matrix the dynamic function has some problem due to the absence of attributes definition in the nx.Graph().edges(), this bug is solvable:
the matrix_graph function should assign attributes for a square matrix with dimension of the largest axe, then assign 1 to the diagonal value of the matrix (the node can move to itself only) ad 0 to all the rest.
This problem is absent in case of square matrix