pub fn nested_dissection(a: &CsrMatrix) -> Vec<usize>Expand description
A nested dissection ordering of the symmetric pattern of A + Aᵀ: a small vertex separator
splits the graph into two parts that no longer touch, each part is ordered recursively, and the
separator is numbered last. Eliminating the parts independently confines the fill to each part
and to the separator; on an n × n grid the fill is O(N log N) for N = n² unknowns, against
O(N^1.5) for banded and minimum-degree orderings. Pieces of at most 800 vertices, and the
separators, are ordered by approximate minimum degree, with the vertices still to come as a
frozen halo.
The separators come from a multilevel bisection: the graph is coarsened by matching heavy edges,
bisected by growing a region from a vertex until it holds half the weight, and refined at each
level by Fiduccia-Mattheyses moves. The edge cut is turned into a vertex separator by a minimum
vertex cover of the cut edges (König’s theorem). Returns q with q[k] the vertex numbered
k-th.