removed duplicate edges