Skip to content

ARC105E

Step 1

For each connected component not containing \(1\) or \(n\), we can add \(\frac{|V|(|V|-1)}{2} - |E|\) edges before we have to connect it to another component.

The final state is going to look like 2 complete graphs connected by 1 edge.

(TBD)