get_subnet_adj_list: Return an adjacency list of subnets

View source: R/reachable.R

get_subnet_adj_listR Documentation

Return an adjacency list of subnets

Description

Return an adjacency list of subnets

Usage

get_subnet_adj_list(adj_list)

Arguments

adj_list

A normal adjacency list

Details

A graph with 4 components: 1, 2, 3, 4, and 5 and 6, 7, 8 would yield a list like so: 1: 2, 3, 4 2: 1 3: 1 4: 1 5: numeric(0) 6: 7, 8 7: 6, 8: 6

This format speeds up the construction of reachable sets on dense networks

Value

An adjacency list where only the first node of a subnet contains the subnet and all other contain only the first node


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