Examples for 'igraph::with_igraph_opt'


Run code with a temporary igraph options setting

Aliases: with_igraph_opt

Keywords:

### ** Examples

with_igraph_opt(
  list(sparsematrices = FALSE),
  make_ring(10)[]
)
      [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [,10]
 [1,]    0    1    0    0    0    0    0    0    0     1
 [2,]    1    0    1    0    0    0    0    0    0     0
 [3,]    0    1    0    1    0    0    0    0    0     0
 [4,]    0    0    1    0    1    0    0    0    0     0
 [5,]    0    0    0    1    0    1    0    0    0     0
 [6,]    0    0    0    0    1    0    1    0    0     0
 [7,]    0    0    0    0    0    1    0    1    0     0
 [8,]    0    0    0    0    0    0    1    0    1     0
 [9,]    0    0    0    0    0    0    0    1    0     1
[10,]    1    0    0    0    0    0    0    0    1     0
igraph_opt("sparsematrices")
[1] TRUE

[Package igraph version 1.3.1 Index]