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