thank you so much,
now I have an adjacency matrix By your and Amir's code and another adjacency matrix inferred from minet package. by your previous code I made both of matrices the same dimension but rownames and colnames also shoud be the same and match,
please consider the head of my matrices
> head(A[,1:4])
AT5G10140 AT5G11260 AT5G62020 AT5G20240
AT5G10140 0 0 0 0
AT5G11260 0 0 1 0
AT5G62020 0 0 0 0
AT5G20240 0 0 0 0
AT3G54340 0 0 0 0
AT3G62420 0 0 0 0
> dim(A)
[1] 3123 3123
My another matrix
> head(mycounts1[,1:4])
AT1G01060 AT1G01170 AT1G01180 AT1G01260
AT1G01060 0.0000000 0.6174969 1.410928 0.0000000
AT1G01170 0.6174969 0.0000000 0.000000 0.2309380
AT1G01180 1.4109279 0.0000000 0.000000 0.0000000
AT1G01260 0.0000000 0.2309380 0.000000 0.0000000
AT1G01380 2.6555107 0.0000000 1.363213 0.5188701
AT1G01490 2.4668978 2.5065047 1.513176 1.5809029
> dim(mycounts)
[1] 3123 3123
as you consider the matrices are not match. how I can make them match please?
thank you