Learn R Programming

cograph (version 1.5.2)

parse_input: Parse Network Input

Description

Automatically detects input type and converts to internal format.

Usage

parse_input(input, directed = NULL)

Value

List with nodes, edges, directed, and weights components.

Arguments

input

Network input: matrix, data.frame (edge list), or igraph object.

directed

Logical. Force directed interpretation. NULL for auto-detect.