2014-07-06 1 views

Répondre

5

Essayez d'utiliser sparse=FALSE dans l'appel à get.adjacency(...)

g <- graph.full(5) 
test <- get.adjacency(g) 
class(test) 
# [1] "dgCMatrix" 
# attr(,"package") 
# [1] "Matrix" 

test <- get.adjacency(g,sparse=FALSE) 
class(test) 
# [1] "matrix" 
+0

Merci, ça fonctionne très bien! –

Questions connexes