graph_: Convert object to a graph

View source: R/make.R

graph_R Documentation

Convert object to a graph

Description

This is a generic function to convert R objects to igraph graphs.

Usage

graph_(...)

Arguments

...

Parameters, see details below.

Details

TODO

Related documentation in the C library

simplify(), vcount(), edges(), get_eids(), ecount()

Examples

## These are equivalent
graph_(cbind(1:5, 2:6), from_edgelist(directed = FALSE))
graph_(cbind(1:5, 2:6), from_edgelist(), directed = FALSE)

igraph documentation built on May 4, 2026, 9:07 a.m.