fixed count diagonal edges