Given a matrix A of a strongly $k$ regular graph G(srg($n,k,\lambda,\mu$);$\lambda ,\mu >0;k>3$). The matrix A can be divided into 4 sub matrices based on adjacency of vertex $x \in G$. $A_x$ is the symmetric matrix of the graph $(G-x)$, where $C$ is the symmetric matrix of the graph created by vertices of $(G-x)$ which are not adjacent to $x$ and $D$ is the symmetric matrix of the graph created by vertices of $(G-x)$ which are adjacent to $x$.
$$ A_x = \left(\begin{array}{cccccc|ccc|c} 0&1&0&0&1&0&1&0&0&0\\ 1&0&1&0&0&0&0&1&0&0\\ 0&1&0&1&0&0&0&0&1&0\\ 0&0&1&0&0&1&1&0&0&0\\ 1&0&0&0&0&1&0&0&1&0\\ 0&0&0&1&1&0&0&1&0&0\\ \hline 1&0&0&1&0&0&0&0&0&1\\ 0&1&0&0&0&1&0&0&0&1\\ 0&0&1&0&1&0&0&0&0&1\\ \hline 0&0&0&0&0&0&1&1&1&0\\ \end{array}\right) = \left( \begin{array}{ccc} C & E & 0 \\ E^{T} & D & 1\\ 0 & 1 & 0\\ \end{array} \right) $$
It should be noted that
Interchanging/swapping any two rows (or columns) of $C$ does not affect matrix $D$ (and vice versa).
Any change in $C$ or $D$ or both $C$ and $D$ changes matrix $E$.
Problem: If some vertices of $G$ is rearranged (i.e., permuted), $A$ will be different, say, this new matrix is $B$. Again, matrix $B$ can be divided into 4 sub matrices based on adjacency of vertex $x \in G$ and $ B_x$ can be obtained.
Assume:
- $C$ is always the adjacency matrix of a regular graph and bigger than $D$.
- There exists an algorithm that always order $D$ (for a vertex $x \in G$) takes $O(K)$ time (assumed to be polynomial/exponential, does not matter).
Each row of E has different permutation, i.e., rows might have same number of 1's but different permutation/arrangement of 1.
For $n$ vertices there will be total $n$ numbers of $C,D$, each of them will take $O(K)$ (assumed to be polynomial) time to sort. If each $C$ takes time $O(f(n))$ to sort, then the total complexity will be $O(n \cdot K \cdot f(n))$.
Question: According to the three assumptions above, does there exist a polynomial time algorithm to sort $C$ so that $B=A$? I.e., is there a polynomial $f$ ?
The problem is connected to this question.
If anything is unclear, please ask a specific question, I will try my best to answer.