update_unique_ids: Create the uids for the new nodes

View source: R/network_utils.R

update_unique_idsR Documentation

Create the uids for the new nodes

Description

This function is called by 'append_core_attr' and append new uids to the created nodes. It also keeps track of the already used uids with the /codedat[["_last_uid"]] variable

This function is called by 'append_core_attr' and append new unique_ids to the created nodes. It also keeps track of the already used unique_ids with the /codedat[["_last_unique_id"]] variable

Usage

update_unique_ids(dat, n.new)

Arguments

dat

a Master list object of network models

n.new

the number of new nodes to give unique_id to

Value

the Master list object of network models (dat)

the Master list object of network models (dat)


thednainus/HIVepisim documentation built on Nov. 23, 2023, 12:26 a.m.