induced_level_subgraph {motifr}R Documentation

Returns subgraph induced by one level of the network

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

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


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

[Package motifr version 1.0.0 Index]