Learn R Programming

SBMSplitMerge (version 1.1.1)

edges: Class for edge data

Description

A class to hold edge data

Usage

edges(e, sym, loops, ...)

Arguments

e

a matrix or array representing the raw edge-state data

sym

is the network symmetric? (e[ji] = e[ji])

loops

does the network contain self-loops? (edges from node i to i)

...

additional arguments to append to edges internal list

Value

an edges object

Examples

Run this code
# NOT RUN {
## make an sbm model, sample data then plot and print:
model <- sbmmod(dma(2,5), param_beta(1,1,1,1), edges_bern())
s <- model$r(100)
e <- redges(s, model$edge)
plot(e)
plot(e, s)
print(e)
# }

Run the code above in your browser using DataLab