parse_input: Parse Network Input

View source: R/input-parse.R

parse_inputR Documentation

Parse Network Input

Description

Automatically detects input type and converts to internal format.

Usage

parse_input(input, directed = NULL, simplify = FALSE)

Arguments

input

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

directed

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

Value

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


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