Learn R Programming

cograph (version 1.5.2)

get_labels: Get Labels from Cograph Network

Description

Extracts the node labels vector from a cograph_network object.

Usage

get_labels(x)

Value

A character vector of node labels.

Arguments

x

A cograph_network object.

See Also

as_cograph, get_nodes

Examples

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

Run the code above in your browser using DataLab