Let $\mathrm{M}\in\lbrace0,1\rbrace^n$ be the adjacency matrix of a graph $\mathrm{G}\left(V,E\subseteq\lbrace\lbrace u,v\rbrace| u,v\in V\rbrace\right)$ of order $n$. 


Let $\mathrm{G}$ additionally be metric in the sense, that $$\lbrace v\_i, v\_j, v\_k\rbrace\subseteq V\ \ \wedge\ \ w\_{uv}\in\lbrace 0,1\rbrace\ \ \wedge\ \ w\_{uv}=1\iff e\_{uv}\in E$$ $$\implies w\_{ij}+w\_{jk}+w\_{ki}\ \in\ \lbrace 0,2,3\rbrace$$ 



> 
> **Question:**
>  is it then true that $$\mathrm{rank}(\mathrm{M})=\max\_{n'}\mathrm{K}\_{n'}\subseteq\mathrm{G}$$
>  resp. how is the the rank of the adjacency matrix related to the size of the maximal clique?
> 
> 
> 



Estimating Maximal-Clique of Metric Graphs via the Rank of their Adjacency Matrix
I also assume that the graph contains at least one edge, else the maximal clique contains 1 vertex while the rank is 0. In any graph (not necessarily metric) which contains at least one edge the rank of the adjacency matrix is not less than the size of maximal clique (look to corresponding minor).


Your metric condition is equivalent to the following: the vertices may be partitioned onto $m$ disjoint non-empty groups $V\_1,\dots,V\_m$ so that any two vertices from the same $V\_i$ are not joined while any two vertices from different $V\_i$'s are joined. It implies that the rank of such a matrix is at most $m$, since there are exactly $m$ different rows. On the other hand, the maximal clique size is exactly $m$. Therefore here we have indeed the equality.


