Skip to content

Commit

Permalink
docs: update graph saving rec (#1700)
Browse files Browse the repository at this point in the history
  • Loading branch information
maelle authored Feb 20, 2025
1 parent f7eec84 commit f7ab64d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion vignettes/igraph.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,7 @@ g <- delete_vertex_attr(g, "gender")
V(g)$gender
```

If you want to save a graph in R with all the attributes use the R's standard function `dput()` function and retrieve it later with `dget()`. You can also just save the R workspace and restore it later.
If you want to save a graph in R with all the attributes use `saveRDS()` (and then `readRDS()` to retrieve it).

## Structural properties of graphs

Expand Down
2 changes: 1 addition & 1 deletion vignettes/igraph_ES.rmd
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,7 @@ g <- delete_vertex_attr(g, "gender")
V(g)$gender
```

Si quieres guardar un grafo en R con todos los atributos utiliza la función estándar de R `dput` y recupéralo más tarde con `dget`. También puedes simplemente guardar el espacio de trabajo de R y restaurarlo más tarde.
Si quieres guardar un grafo en R con todos los atributos utiliza la función `saveRDS()` (y `readRDS()` para recuperarlo más tarde).

## Propiedades estructurales de los grafos

Expand Down

0 comments on commit f7ab64d

Please sign in to comment.