Edges and diagonals in a regular polygon