get_connected_nodes: Returns all the node connected directly or indirectly to a...

View source: R/reachable.R

get_connected_nodesR Documentation

Returns all the node connected directly or indirectly to a set of nodes

Description

Returns all the node connected directly or indirectly to a set of nodes

Usage

get_connected_nodes(adj_list, nodes)

Arguments

adj_list

The network represented as an adjacency list

nodes

A set of nodes

Value

A vector of nodes indexes that are connected together with the ones provided in the nodes argument. The nodes themselves are not listed in this output


EpiModel documentation built on Oct. 12, 2024, 1:06 a.m.