Use this if you are using igraph from R
Run code with a temporary igraph options setting
with_igraph_opt(options, code)
options |
A named list of the options to change. |
code |
The code to run. |
The result of the code
.
Other igraph options:
igraph_options()
with_igraph_opt( list(sparsematrices = FALSE), make_ring(10)[] ) igraph_opt("sparsematrices")