Skip to content

Commit

Permalink
Adding changes
Browse files Browse the repository at this point in the history
  • Loading branch information
gvegayon committed Aug 15, 2022
1 parent f83b35f commit d095657
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 1,6 @@
Package: netdiffuseR
Title: Analysis of Diffusion and Contagion Processes on Networks
Version: 1.22.3
Version: 1.22.4
Authors@R: c(
person("George", "Vega Yon", email="[email protected]", role=c("aut", "cre"),
comment=c(ORCID = "0000-0002-3171-0844", what="Rewrite functions with Rcpp, plus new features")
Expand Down
4 changes: 2 additions & 2 deletions R/adjmat.r
Original file line number Diff line number Diff line change
Expand Up @@ -743,8 743,8 @@ drop_isolated <- function(


simmelian_mat <- function(graph, ...) {
tmethod <- if(isS4(graph)) getMethod("t", class(graph)) else t
tmp <- graph & tmethod(graph)
# tmethod <- if(isS4(graph)) getMethod("t", class(graph)) else t
tmp <- graph & t(graph) #tmethod(graph)
methods::as(tmp & (tmp %*% tmp), "dgCMatrix")
}

Expand Down
2 changes: 1 addition & 1 deletion R/diffnet-methods.r
Original file line number Diff line number Diff line change
Expand Up @@ -1688,7 1688,7 @@ dimnames.diffnet <- function(x) {
#' @rdname diffnet-class
#' @method t diffnet
t.diffnet <- function(x) {
x$graph <- lapply(x$graph, getMethod("t", "dgCMatrix"))
x$graph <- lapply(x$graph, t) #getMethod("t", "dgCMatrix"))
x
}

Expand Down

0 comments on commit d095657

Please sign in to comment.