From c729b131bff5a7d2170c399c8e22f17603649b0b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ma=C3=ABlle=20Salmon?= Date: Mon, 27 Nov 2023 10:06:46 +0100 Subject: [PATCH 1/2] manually replace graph.strength() --- R/aaa-auto.R | 2 +- tools/stimulus/types-RR.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/R/aaa-auto.R b/R/aaa-auto.R index bbf77516357..51e9fff099e 100644 --- a/R/aaa-auto.R +++ b/R/aaa-auto.R @@ -2013,7 +2013,7 @@ scg_norm_eps_impl <- function(V, groups, mtype=c("symmetric", "laplacian", "stoc res } -adjacency_spectral_embedding_impl <- function(graph, no, weights=NULL, which=c("lm", "la", "sa"), scaled=TRUE, cvec=graph.strength(graph, weights=weights)/(vcount(graph)-1), options=arpack_defaults()) { +adjacency_spectral_embedding_impl <- function(graph, no, weights=NULL, which=c("lm", "la", "sa"), scaled=TRUE, cvec=strength(graph, weights=weights)/(vcount(graph)-1), options=arpack_defaults()) { # Argument checks ensure_igraph(graph) no <- as.integer(no) diff --git a/tools/stimulus/types-RR.yaml b/tools/stimulus/types-RR.yaml index 655f513be33..e09ef675833 100644 --- a/tools/stimulus/types-RR.yaml +++ b/tools/stimulus/types-RR.yaml @@ -33,7 +33,7 @@ INDEX_VECTOR: VECTOR: DEFAULT: - AsmDefaultCvec: graph.strength(%I1%, weights=weights)/(vcount(%I1%)-1) + AsmDefaultCvec: strength(%I1%, weights=weights)/(vcount(%I1%)-1) INCONV: '%I% <- as.numeric(%I%)' VERTEXINDEX: From 94558be78860e55c3026d852a024cdb90604f0c2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ma=C3=ABlle=20Salmon?= Date: Tue, 5 Dec 2023 12:23:48 +0100 Subject: [PATCH 2/2] update docs --- man/embed_adjacency_matrix.Rd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/man/embed_adjacency_matrix.Rd b/man/embed_adjacency_matrix.Rd index 4657f50dfa2..08070dfcd70 100644 --- a/man/embed_adjacency_matrix.Rd +++ b/man/embed_adjacency_matrix.Rd @@ -10,7 +10,7 @@ embed_adjacency_matrix( weights = NULL, which = c("lm", "la", "sa"), scaled = TRUE, - cvec = graph.strength(graph, weights = weights)/(vcount(graph) - 1), + cvec = strength(graph, weights = weights)/(vcount(graph) - 1), options = arpack_defaults() ) }