to_network: Convert Network to statnet network Object

View source: R/network-utils.R

to_networkR Documentation

Convert Network to statnet network Object

Description

Converts any supported network format to a statnet network object.

Usage

to_network(x, directed = NULL)

Arguments

x

Network input: matrix, cograph_network, igraph, tna, etc.

directed

Logical or NULL. If NULL (default), auto-detect from input.

Value

A network object from the network package.

See Also

to_igraph, to_matrix, to_df, as_cograph

Examples


to_network(regulation_net)


cograph documentation built on Nov. 19, 2026, 5:07 p.m.