repr_nvd: Network-Valued to Matrix-Valued Data

View source: R/representations.R

repr_nvdR Documentation

Network-Valued to Matrix-Valued Data

Description

Network-Valued to Matrix-Valued Data

Usage

repr_nvd(x, y = NULL, representation = "adjacency")

Arguments

x

An nvd object.

y

An nvd object. If NULL (default), it is not taken into account.

representation

A string specifying the requested matrix representation. Choices are: "adjacency", "laplacian" or "modularity". Default is "adjacency".

Value

A list of matrices.

Examples

gnp_params <- list(p = 1/3)
x <- nvd(model = "gnp", n = 10L, model_params = gnp_params)
xm <- repr_nvd(x)

ilovato/nevada documentation built on Sept. 12, 2023, 8:12 a.m.