pub fn trace_centers(result: &MappingResult) -> Vec<(usize, usize)>Expand description
Trace center locations through gadget transformations.
Returns the final center location for each original vertex after all gadget transformations have been applied.
This matches Julia’s trace_centers function which:
- Gets initial center locations with (0, 1) offset
- Applies
move_centerfor each gadget in the tape
§Arguments
result- The mapping result frommap_weighted
§Returns
A vector of (row, col) positions for each original vertex.