induced_level_subgraph: Returns subgraph induced by one level of the network

Description Usage Arguments Value Examples

View source: R/core.R

Description

This function is intended to be used together with simulate_baseline() for partial ERGM models. Currently, only network objects are supported as input.

Usage

1
induced_level_subgraph(net, level, lvl_attr = "sesType")

Arguments

net

the network

level

the (number of the) level

lvl_attr

name of the nodal attribute specifying the level

Value

induced subgraph as network object.

Examples

1
2
subgraph_actors <- induced_level_subgraph(motifr::ml_net, 1)
plot_mnet(subgraph_actors, label = TRUE)

motifr documentation built on Dec. 15, 2020, 5:23 p.m.