I was wondering what is the maximum possible number of distinct sizes of maximal cliques in a graph with fixed order $N$, and if anyone can share or point me to a proof or literature on this topic. To clarify, if a graph has 4 vertices, it could have maximal cliques of size 1 and 2, or 1 and 3, (or all maximal cliques of size 4, all of size 3, all of size 2, etc.) but we can't have more than 2 distinct sizes of maximal cliques.
I've found a way to build graphs with $\left\lfloor\frac{N + 1}{2}\right\rfloor$ sizes of maximal cliques (start at isolated vertex, then add two more vertices as an edge, then add two more vertices linked to each other and to 1 of the vertices of the edge to form a triangle, then add two more vertices linked to each other and to 2 of the vertices of the triangle to form a maximal 4-clique, etc.) My hunch is that we can't do better than $\left\lfloor\frac{N + 1}{2}\right\rfloor$ sizes of maximal cliques, but I'm not sure how to prove this or even if it is true because there are so many possible intersections between maximal cliques going on at once with higher number of vertices, and maybe there are better ways of having the maximal cliques intersect to save space than the method I described above. Any help would be much appreciated.
(Too long for a comment.) You can reuse some vertices. For example, you can make maximal cliques of cardinalities $\{\, 1, 2, 3, 4, 5, 6\,\}$ using $10$ vertices only. Let the graph have vertices $\{\,1, 2, \ldots, 10\,\}$, maximal cliques $\{\,\{\,1\,\}, \{\,2, 3\,\}, \{\,2, 4, 5\,\}, \{\,4, 5, 6, 7\,\}, \{\,5, 6, 7, 8, 9\,\}, \{\,3, 6, 7, 8, 9, 10\,\}\,\}$ and no other edges. Here instead of adding the vertex $11$ I reuse the vertex $3$.
The vertex $4$ can be reused after eliminating vertices $3$ and $6$–$9$, i. e., graph on $21$ vertices can have maximal cliques of $12$ distinct cardinalities.
The vertex $2$ can be used together with the vertex $4$ right after eliminating vertex $10$, thus graph on $22$ vertices can have maximal cliques of $13$ distinct cardinalities.
It is hard to estimate usefulness of this modification, but it definitely gives something like $\frac{n}{2} + \Omega(\sqrt n)$ of distinct cardinalities of maximal cliques for a graph on $n$ vertices. Note that vertices can be reused more than once, and this complicates everything even more.
Another idea allows to get maximal cliques of cardinalities $\{\, 1, 2, 3, 4, 5\,\}$ using $8$ vertices only. Let the graph have vertices $\{\,1, 2, \ldots, 8\,\}$, maximal cliques $\{\,\{\,1\,\}, \{\,2, 3\,\}, \{\,2, 4, 5\,\}, \{\,3, 6, 7, 8\,\}, \{\,4, 5, 6, 7, 8\,\}\,\}$ and no other edges.
It allows to get $8$ distinct cardinalities of maximal cliques on $13$ vertices only: $\{\,\{\,1\,\}, \{\,2, 3\,\}, \{\,2, 4, 5\,\}, \{\,3, 6, 7, 8\,\}, \{\,2, 9, 10, 11, 12\,\}, \{\,4, 6, 7, 8, 9, 10\,\}, \{\,5, 6, 7, 8, 11, 12, 13\,\}, \{\,6, 7, 8, 9, 10, 11, 12, 13\,\}\,\}.$
Here I started from the maximum clique and added smaller maximal cliques, using vertices of the maximum one and one new, until I could use these new vertices to make smaller components. Again we have $\frac{n}{2} + \Omega(\sqrt n)$ of distinct cardinalities of maximal cliques for a graph on $n$ vertices. And again reusing existing vertices is not limited by any constant number of times.
Maybe in some cases it even makes sense not to use the isolated vertex. I mean if adding two vertices would give three new cardinalities, we can remove the isolated vertex and probably add it later. There are many options to consider.
On the other hand I don't see any good upper bound.