Polished Lab Topology Generator
Generates multiple topology variants that preserve the core structure. Root devices are placed in POOL A, while POOL B contains devices to add.
Algorithm flow
Five steps
- Define pools: Pool A: 8×6 main grid with default centered 4×2 user grid.
- Set variable weight: Center and neighbors get 1.5; routers/L3 get 1; L2 gets 0.5.
- Swap one device: Pick A node X and B node Y; skip if type or weight matches. Do not replace if weight ≥ 1.5. New node comes in with weight 1.
- Add new device from device pool: Routers attach to highest-weight nodes. Switches seek nearby low-weight first, then lowest-weight fallback.
- Repeat: Keep replacing/adding until device pool is empty.