Learn R Programming

cograph (version 1.5.2)

nodes: 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)

Value

A data frame with columns: id, label, name, x, y (and possibly others).

Arguments

x

A cograph_network object.

See Also

get_nodes, as_cograph, n_nodes

Examples

Run this code
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

Run the code above in your browser using DataLab