\small{\text{ $ \begin{array}{|c|c|c|c|c|c|c|c|} \hline \mathrm{child} & #1 & #2 & #3 & #4 & #5 & #6 & #7 \\ \hline #1 & x & \textcolor[rgb]{1,0,0}{(1,2)} & \textcolor[rgb]{1,0,0}{(1,3)} & \textcolor[rgb]{1,0,0}{(1,4)} & \textcolor[rgb]{1,0,0}{(1,5)} & \textcolor[rgb]{1,0,0}{(1,6)} & \textcolor[rgb]{1,0,0}{(1,7)} \\ \hline #2 & & x & \textcolor[rgb]{1,0,0}{(2,3)} & \textcolor[rgb]{1,0,0}{(2,4)} & \textcolor[rgb]{1,0,0}{(2,5)} & \textcolor[rgb]{1,0,0}{(2,6)} & \textcolor[rgb]{1,0,0}{(2,7)} \\ \hline #3 & & & x & \textcolor[rgb]{1,0,0}{(3,4)} & \textcolor[rgb]{1,0,0}{(3,5)} & \textcolor[rgb]{1,0,0}{(3,6)} & \textcolor[rgb]{1,0,0}{(3,7)} \\ \hline #4 & & & & x & \textcolor[rgb]{1,0,0}{(4,5)} & \textcolor[rgb]{1,0,0}{(4,6)} & \textcolor[rgb]{1,0,0}{(4,7)} \\ \hline #5 & & & & & x & \textcolor[rgb]{1,0,0}{(5,6)} & \textcolor[rgb]{1,0,0}{(5,7)} \\ \hline #6 & & & & & & x & \textcolor[rgb]{1,0,0}{(6,7)} \\ \hline #7 & & & & & & & x \\ \hline \end{array}=\textcolor[rgb]{1,0,0}{(21)} \ \mathrm{handshakes} $}}

.