Graph Algorithm

In graph theory, a regular graph is a graph where each vertex has the same number of neighbors; i.e. every vertex has the same degree or valency. Also, from the handshaking lemma, a regular graph of odd degree will contain an even number of vertices.

Graph source code, pseudocode and analysis