Throw error if invalid edge orientation