If every pair of vertices in a graph has at most $k$ common neighbors and at most $k$ non common neighbors then what is the bound on the number of vertices ? The graph has connected components .
The answer is at most $(2k+1)\cdot k$.
But I don't understand. Can someone explain ..
Since each vertex has $k$ common neighbors and $k$ non common neighbors it should have at least ($k$(neighbors)+$k$(non common neighbors)+$1$(referring vertex)) $2k+1$ vertices . But how it is at most $(2k+1)\cdot k$?
For Example k=1 we have max vertices =3 .
Let the vertices be u ,v and w .
E={(u,v),(v,w)}//Edge Set
For pair (u,v): 0 common neighbor and 1 non common neighbor (because of edge v-w )
For pair (v,w): 0 common neighbor and 1 non common neighbor (because of edge u-v )
For pair (u,w): 1 common neighbor (because of edges u-v and v-w) and 0 non common neighbors