QuACN and igraph: Error: .validateGraph(g) is not TRUE
0
1
Entering edit mode
lljotall ▴ 10
@lljotall-13680
Last seen 7.3 years ago

Hello,

I want to calculate the Wiener index of a graph that is stored in igraph format. Although, I'm getting the same error as in the following example:

library('igraph')
library('QuACN')

m = matrix(c(0,1,0,0,0, 1,0,0,0,0, 0,1,0,0,1, 0,0,0,0,1, 0,0,0,1,0), ncol = 5, nrow = 5)
g = graph_from_adjacency_matrix(m)
gNEL = igraph.to.graphNEL(g)
wiener(gNEL)
Error: .validateGraph(g) is not TRUE

 

Any ideas on what is causing the error?

QuACN igraph • 1.6k views
ADD COMMENT
0
Entering edit mode

Could some one please answer? I am also getting the same error

ADD REPLY

Login before adding your answer.

Traffic: 649 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6