Skip to main content

Finding an adjacency matrix whose cube's diagonal is equal to a given vector

How can I find all binary matrices $A$ such that $A^3$ is a non-negative, integer square matrix and

$$\mbox{diag}\left(A^3\right)=b$$

for some given vector $b$? Is there a way to characterize all the solutions?

Student88
  • 503
  • 2
  • 7