Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

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)

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

Network Analysis and Visualization

v1.2.10
GPL (>= 2)
Authors
See AUTHORS file.
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.