1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
//! Elimination order → `TreeDecomposition`.
//!
//! Builds the bag tree with the elimination-order clique-tree rule (parent =
//! earliest-eliminated neighbour still in the bag) — not the junction-tree
//! construction the vendored C++ FlowCutter uses for the same job. Both yield
//! valid tree decompositions and are not expected to agree; this one does not
//! dedup non-maximal bags.
use crate::;
/// Build a `TreeDecomposition` from a per-step elimination record.
///
/// `steps[s]` is the eliminated vertex followed by the live neighbours that
/// were in its bag. `rank[v]` is the step at which vertex `v` was eliminated.
pub