Move tag logic to a separate file.
Move structure-related logic to a seperate file.
Add missing import.
Finish the logic for identifying good pairs.
Add maximum degree computing logic.
Add logic related to identifying good vertices.
Map out the next steps.
Remove redundant functionality.