get_labels: Get Labels from Cograph Network

View source: R/class-network.R

get_labelsR Documentation

Get Labels from Cograph Network

Description

Extracts the node labels vector from a cograph_network object.

Usage

get_labels(x)

Arguments

x

A cograph_network object.

Value

A character vector of node labels.

See Also

as_cograph, get_nodes

Examples

mat <- matrix(c(0, 1, 1, 1, 0, 1, 1, 1, 0), nrow = 3)
net <- as_cograph(mat)
get_labels(net)

cograph documentation built on April 1, 2026, 1:07 a.m.