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