Skip to contents

Loads a graph from a CSV file containing a two-column edge list. Assumes columns are either from and to, or source and target.

Usage

load_igraph_from_csv(csv_file)

Arguments

csv_file

Path to a CSV file with two columns representing edges.

Value

An undirected igraph object.

Examples

fnet <- load_igraph_from_csv("marketville-friends-coleman-feld.csv")
#> Error in load_igraph_from_csv("marketville-friends-coleman-feld.csv"): File does not exist: marketville-friends-coleman-feld.csv