with_igraph_opt: Run code with a temporary igraph options setting

View source: R/par.R

with_igraph_optR Documentation

Run code with a temporary igraph options setting

Description

Run code with a temporary igraph options setting

Usage

with_igraph_opt(options, code)

Arguments

options

A named list of the options to change.

code

The code to run.

Value

The result of the code.

See Also

Other igraph options: igraph_options()

Examples

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

igraph/rigraph documentation built on May 19, 2024, 6:19 a.m.