From 0e75fe8bb567e51beccfd9344c04c01fd67ba288 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ma=C3=ABlle=20Salmon?= Date: Mon, 8 Jan 2024 11:32:20 +0100 Subject: [PATCH] docs: rm get.adjacency() usage from intro vignettes --- vignettes/igraph.Rmd | 2 +- vignettes/igraph_ES.rmd | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/vignettes/igraph.Rmd b/vignettes/igraph.Rmd index e9844c4e4d4..da3f4658230 100644 --- a/vignettes/igraph.Rmd +++ b/vignettes/igraph.Rmd @@ -469,7 +469,7 @@ E(g)[men %--% women] The adjacency matrix is another way to represent a graph. In an adjacency matrix, rows and columns are labeled by graph vertices, and the elements of the matrix indicate the number of edges between vertices *i* and *j*. The adjacency matrix for the example graph is: ```{r echo = TRUE} -get.adjacency(g) +as_adjacency_matrix(g) ``` For example, Carmina (`1, 0, 0, 1, 1, 1, 0`) is directly connected to Alejandra (who has vertex index 1), Frank (index 4), Dennis (index 5) and Esther (index 6), but not to Bruno (index 2) or to George (index 7). diff --git a/vignettes/igraph_ES.rmd b/vignettes/igraph_ES.rmd index bd0323ee70f..1399d5d86df 100644 --- a/vignettes/igraph_ES.rmd +++ b/vignettes/igraph_ES.rmd @@ -478,7 +478,7 @@ E(g)[men %--% women] Una matriz de adyacencia es otra manera de representar un grafo. En la matriz de adyacencia, las filas y columnas están indicadas por los vértices del grafo y los elementos de la matriz indican el número de aristas entre los vértices *i* y *j*. La matriz de adyacencia del grafo de nuestra red social imaginaria es: ```{r echo = TRUE} -get.adjacency(g) +as_adjacency_matrix(g) ``` Por ejemplo, Carmina (`1, 0, 0, 1, 1, 1, 0`) está directamente conectada con Alejandra (que tiene el índice 1), Frank (índice 4), Dennis (índice 5), Esther (índice 6) y , pero no con Bruno (índice 2) ni con George (índice 7).