get_summary_for_node {SeqNet}R Documentation

Get summary for a node in the network.

Description

Get summary for a node in the network.

Usage

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

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.

[Package SeqNet version 1.1.3 Index]