Skip to content

Commit

Permalink
weighted data init
Browse files Browse the repository at this point in the history
  • Loading branch information
ErikKusch committed Dec 6, 2022
1 parent c96a839 commit baa0f47
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion R/DataInit.R
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

0 comments on commit baa0f47

Please sign in to comment.