subgraph_from_v_attr: Creates a subgraph based on a vertex attribute

Description Usage Arguments Examples

View source: R/igraph_functions.R

Description

Given a graph, desired attribute values, and the title of the attribute, this function creates a subgraph based on those criteria

Usage

1
subgraph_from_v_attr(g, attr_values, attribute)

Arguments

g:

graph to be subset

attr_values:

Character vector of values of the vertex attribute that are allowed

attribute:

Character vector of the vertex attribute upon which to subset

Examples

1
subgraph_from_v_attr(my_graph, c('yes', 'no'), 'is_it_good')

zbeaver4/beavR documentation built on May 4, 2019, 9:12 p.m.