Skip to content

Commit

Permalink
Merge pull request #22 from ErikKusch/ErikDevel
Browse files Browse the repository at this point in the history
.DataInit weight fix
  • Loading branch information
derek-corcoran-barrios authored Dec 6, 2022
2 parents bf24e0b + 603d874 commit 0d33258
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 0d33258

Please sign in to comment.