igraph (version 1.3.5)

with_igraph_opt: Run code with a temporary igraph options setting

Description

Run code with a temporary igraph options setting

Usage

with_igraph_opt(options, code)

Value

The result of the code.

Arguments

options

A named list of the options to change.

code

The code to run.

See Also

Other igraph options: igraph_options()

Examples

Run this code
with_igraph_opt(
  list(sparsematrices = FALSE),
  make_ring(10)[]
)
igraph_opt("sparsematrices")

Run the code above in your browser using DataLab