Adjust generics declarations to remove reliance on IVertex everywhere.