Convert a binary adjacency matrix with missing value to a cube
to_multinomial(X)
X
A binary adjacency matrix with NA
a cube