Graph Theory

Answer & solution
Answer: nd/2 (no official key was published)
Summing vertex degrees gives nd. Each undirected edge contributes two to that sum, one at each endpoint, so the handshaking lemma yields 2|E|=nd. Therefore |E|=nd/2. In particular nd must be even for such a finite graph to exist. This is the standard undirected interpretation of a regular graph; a directed graph would require stating whether d denotes indegree, outdegree or total degree.