to_tbl_graph: Convert edge data frame to tbl_graph

View source: R/converters.R

to_tbl_graphR Documentation

Convert edge data frame to tbl_graph

Description

Convert edge data frame to tbl_graph

Usage

to_tbl_graph(edges, directed = FALSE)

Arguments

edges

A data frame with at least from, to, weight columns.

directed

Logical. Default FALSE.

Value

A tbl_graph object (tidygraph).

Examples


data(biblio_data)
edges <- keyword_network(biblio_data)
tg <- to_tbl_graph(edges)


bibnets documentation built on June 19, 2026, 1:06 a.m.