This is a generic function to convert R objects to igraph graphs.
Examples
## These are equivalent
graph_(cbind(1:5, 2:6), from_edgelist(directed = FALSE))
#> IGRAPH 90bbf2c U--- 6 5 --
#> + edges from 90bbf2c:
#> [1] 1--2 2--3 3--4 4--5 5--6
graph_(cbind(1:5, 2:6), from_edgelist(), directed = FALSE)
#> IGRAPH c3da069 U--- 6 5 --
#> + edges from c3da069:
#> [1] 1--2 2--3 3--4 4--5 5--6