set_igraph_option: Try to set igraph vs.es option when computing neighborhood

Description Usage Arguments Examples

View source: R/hello.R

Description

Try to set igraph vs.es option when computing neighborhood

Usage

1
set_igraph_option(g = igraph::make_ring(10), set.vs.es = TRUE)

Arguments

g

A graph (defaults to a 10 member ring)

set.vs.es

Whether to set the igraph vs.es option (default TRUE)

Examples

1
2
3
4
5
6
7
8
9
# OK
nn=set_igraph_option(set.vs.es=FALSE)

# errors out
nn=set_igraph_option()

# OK again if igraph is attached
library(igraph)
nn=set_igraph_option()

jefferis/pkgusingigraph documentation built on May 19, 2019, 3:57 a.m.