diff --git a/R/DataInit.R b/R/DataInit.R index 0d74026..9536de8 100644 --- a/R/DataInit.R +++ b/R/DataInit.R @@ -10,7 +10,12 @@ x } if(is(x) == "matrix"){ - x <- as.network(x, loops = TRUE) + x <- network::as.network(x, + matrix.type='adjacency', + # loops = TRUE, + directed = TRUE, + ignore.eval = FALSE, + names.eval = 'weight') } return(x) }