R/converters.R
to_tbl_graph.Rd
Convert edge data frame to tbl_graph
to_tbl_graph(edges, directed = FALSE)
A data frame with at least from, to, weight columns.
from
to
weight
Logical. Default FALSE.
FALSE
A tbl_graph object (tidygraph).
data(biblio_data) edges <- keyword_network(biblio_data) tg <- to_tbl_graph(edges)