graph.data.frame: Creating igraph graphs from data frames or vice-versa

View source: R/data_frame.R

graph.data.frameR Documentation

Creating igraph graphs from data frames or vice-versa

Description

[Deprecated]

graph.data.frame() was renamed to graph_from_data_frame() to create a more consistent API.

Usage

graph.data.frame(d, directed = TRUE, vertices = NULL)

Arguments

d

A data frame containing a symbolic edge list in the first two columns. Additional columns are considered as edge attributes. Since version 0.7 this argument is coerced to a data frame with as.data.frame.

directed

Logical scalar, whether or not to create a directed graph.

vertices

A data frame with vertex metadata, or NULL. See details below. Since version 0.7 this argument is coerced to a data frame with as.data.frame, if not NULL.


igraph/rigraph documentation built on May 19, 2024, 6:19 a.m.