Skip to contents

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

Usage

graph_(...)

Arguments

...

Parameters, see details below.

Details

TODO

Examples

## These are equivalent
graph_(cbind(1:5, 2:6), from_edgelist(directed = FALSE))
#> Warning: `graph_()` was deprecated in igraph 2.1.0.
#>  Please use constructors directly, for instance graph_from_edgelist().
#>  graph_() will be removed in a future version of igraph.
#> IGRAPH cfe0a22 U--- 6 5 -- 
#> + edges from cfe0a22:
#> [1] 1--2 2--3 3--4 4--5 5--6
graph_(cbind(1:5, 2:6), from_edgelist(), directed = FALSE)
#> IGRAPH d89e0d3 U--- 6 5 -- 
#> + edges from d89e0d3:
#> [1] 1--2 2--3 3--4 4--5 5--6