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))
#> IGRAPH 7125799 U--- 6 5 -- 
#> + edges from 7125799:
#> [1] 1--2 2--3 3--4 4--5 5--6
graph_(cbind(1:5, 2:6), from_edgelist(), directed = FALSE)
#> IGRAPH 3aa0d3e U--- 6 5 -- 
#> + edges from 3aa0d3e:
#> [1] 1--2 2--3 3--4 4--5 5--6