graph_to_edgelist: Extract edge list of a graph object.

Description Usage Arguments Value Examples

Description

Extract edge list of a graph object.

Usage

1

Arguments

g

an igraph graph object.

Value

An |E| by 2 tibble, where |E| is the number of edges in g.

Examples

1
2
g0 <- igraph::graph_from_data_frame(data.frame(a = c("1", "2"), b = c("2", "3")))
graph_to_edgelist(g0)

clement-lee/mmsbmdag documentation built on May 31, 2019, 4:59 a.m.