load_network: Load Network

View source: R/utils.R

load_networkR Documentation

Load Network

Description

Loads an igraph network from a filepath to an edge list.

Usage

load_network(
  path_to_edgelist,
  type = NULL,
  name = NULL,
  col_names = c("from", "to", "weight"),
  select = 1:3,
  header = "auto",
  directed = FALSE,
  verbose = FALSE
)

Arguments

path_to_edgelist

A path to a network file in edgelist format. Expected to have two columns: 'from', 'to', and 'weight'.

type

The edge type.

name

The name of the network.

col_names

The column names to use for the edgelist.

select

The columns to select from the edgelist.

directed

Whether the network is directed.

verbose

Print progress to console.

Value

An igraph network object.


dkainer/RWRtoolkit documentation built on Jan. 11, 2025, 3:26 a.m.