Number of line segments in Fig. 2.5 is
we can simply count it
remember AB is same as BA.
So the line segments are
AB AC AD AE
BC BD BE
CD CE
DE