To Reproduce:
- Function error occurred in: CN
R and SemNeT versions:
Operating System:
Additional context and comments
convert2igraph.R is removing parts of the matrix that are 'unconnected', igraph is producing row/column indices that refer to that filtered matrix, but then CN.R is using those row/column indices to subset the original coocurrence matrix (adj). This leads to a mismatch in which nodes are reported as being the largest matrix. If you instead add your removal of unconnected nodes either to the start of the CN.R script or to the end, the problem is resolved.