Learn R Programming

cograph (version 2.0.0)

.extract_weights: Extract Weight Matrix from Network Object

Description

Internal helper to extract adjacency/weight matrix from various input types.

Usage

.extract_weights(x)

Value

A numeric matrix.

Arguments

x

Network object (matrix, CographNetwork, tna, igraph, or list with $weights).