Description Active bindings Methods
Wrapper class for the network
C struct (network.h).
Network object has information about a specific network.
the network ID
.c_network External pointer, reference to network
C struct.
the C network R pointer object
check the C network still exists
c_network
the C network R pointer object (SWIG wrapped)
new()
Network$new(model, network_id)
model
R6 Model object
network_id
The network ID.
n_edges()
Wrapper for C API network_n_edges
.
Network$n_edges()
Number of edges
n_vertices()
Wrapper for C API network_n_vertices
.
Network$n_vertices()
Number of vertices
name()
Wrapper for C API network_name
.
Network$name()
The network name
network_id()
Wrapper for C API get_network_by_id
Network$network_id()
The network ID
skip_hospitalised()
Wrapper for C API network_skip_hospitalised
.
Network$skip_hospitalised()
TRUE
if interactions are skipped for hospitalised
persons.
skip_quarantined()
Wrapper for C API network_skip_quarantined
.
Network$skip_quarantined()
TRUE
if interactions are skipped for quarantined
persons.
type()
Wrapper for C API network_type
.
Network$type()
Network type: 0 (household), 1 (occupation), or 2 (random)
daily_fraction()
Wrapper for C API network_daily_fraction
.
Network$daily_fraction()
The fraction of edges on the network present each day (i.e. down-sampling the network). Value between 0 and 1.
transmission_multiplier()
Wrapper for C API network_transmission_multiplier
.
Network$transmission_multiplier()
The transmission multiplier for this network
set_transmission_multiplier()
Wrapper for C API set_network_transmission_multiplier
.
Network$set_transmission_multiplier(val)
val
New tranmission multiplier value to set.
Sets the transmission multiplier for this network
update_daily_fraction()
Wrapper for C API update_daily_fraction
.
Network$update_daily_fraction(daily_fraction)
daily_fraction
New fraction value; a value between 0 and 1.
TRUE
on success, FALSE
on failure.
print()
Print the object
Network$print()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.