This paper examines the evolution of a small-world network transitioning to a random network using the Watts-Strogatz model, focusing on the distribution of the maximal clique size per node as the probability of link rewiring and the initial degree per node are varied. The research finds that the maximal clique size distribution per node exhibits a Poisson distribution, remains stable when transitioning from a regular to a small-world network, but decreases significantly when moving to a random network. The analysis includes the efficacy of an exact algorithm to identify maximal cliques for individual vertices, contributing to the study of complex networks.