Compile using Xlint
Explicit generics for Pair constructor
Add test for removing an edge