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