refactoring constructor quadedge