Skip to content

QuACN package: getLargestSubgraph -> .validateGraph error

1 message · Raphael Prates

#
I am trying to create a network from the matrix that is attached.
## changing the values of the matrix
for (j in 1:ncol(matrixSelecionada)) {
                        if (matrixSelecionada[i,j] < 0.01 || i==j) {
                        matrixSelecionada[i,j] <- 0
               } else if (matrixSelecionada[i,j]>=0.01) {
                        matrixSelecionada[i,j] <- 1
                }

                }
                }
A graphNEL graph with directed edges
Number of Nodes = 56
Number of Edges = 1256
Error: .validateGraph(g) is not TRUE


But when I do validateGraph
[1] TRUE