pub fn minimum_degree(a: &CsrMatrix) -> Vec<usize>Expand description
A minimum-degree ordering of the symmetric pattern of A + Aᵀ (SciPy’s MMD_AT_PLUS_A is the
same idea): repeatedly eliminate a vertex of least degree in the elimination graph.
The graph is never formed. Eliminating a vertex turns it into an element, standing for the clique of its neighbours, and a vertex’s degree is bounded using the sizes of the elements it belongs to (Amestoy, Davis and Duff’s approximate degree), so one elimination costs work proportional to the size of the new element and not to the square of it. Elements contained in a new one are absorbed, vertices left with the same neighbours are merged into one weighted supervariable and eliminated together, and a vertex whose only neighbour is the new element is eliminated with it. Ties go to the lowest index.
Returns q with q[k] the vertex eliminated k-th.