nodes: Get Nodes from Cograph Network (Deprecated)

View source: R/class-network.R

nodesR Documentation

Get Nodes from Cograph Network (Deprecated)

Description

Extracts the nodes data frame from a cograph_network object. Deprecated: Use get_nodes instead.

Usage

nodes(x)

Arguments

x

A cograph_network object.

Value

A node metadata data frame, usually with id and label columns, plus layout or other metadata columns when present.

See Also

get_nodes, as_cograph, n_nodes

Examples

mat <- matrix(c(0, 1, 1, 1, 0, 1, 1, 1, 0), nrow = 3)
net <- as_cograph(mat)
nodes(net)  # Deprecated, use get_nodes(net) instead

cograph documentation built on May 31, 2026, 5:06 p.m.