Adding option to set the diagonal to the maximum of the row/column
Completing graph-decompose