Input the amount of nodes in a graph:

Note that graph is hamiltonian so, p(a,b) = p(b,a) and each node is connected with every other.