get_summary_for_node: Get summary for a node in the network.

Description Usage Arguments Value Examples

View source: R/networks.R

Description

Get summary for a node in the network.

Usage

1
get_summary_for_node(node, network)

Arguments

node

The node to summarize. Can be a character string corresponding to a name of a node in the network, or an integer value from 1 to p corresponding to the index of a node.

network

A network object.

Value

A list containing summary information for the node; this includes a vector of indicies to other nodes in the network it is connected to, and a vector of incidices to modules that contain the node.

Examples

1
2
3
4
5
set.seed(12345)
nw <- random_network(100)
get_summary_for_node(1, nw)
# Node 1 is contained in modules 1 and 2, and it is connected to nodes 
# 2, 4, 11, 13, 23, and 29.

SeqNet documentation built on July 9, 2021, 9:08 a.m.