Handshaking theorem states that .