sif2igraph: SIF to igraph

View source: R/functions.R

sif2igraphR Documentation

SIF to igraph

Description

This function imports and converts a SIF file from your local hard drive, cloud space, or internet into a graph with an igraph class, which can then be used for the identification of most influential nodes via the ivi function, for instance.

Usage

sif2igraph(Path, directed = FALSE)

Arguments

Path

A string or character vector indicating the path to the desired SIF file. The SIF file could be on your local hard drive, cloud space, or on the internet.

directed

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

Value

An igraph graph object.

See Also

Other network_reconstruction functions: graph_from_adjacency_matrix(), graph_from_data_frame(), graph_from_incidence_matrix()

Examples

## Not run: 
MyGraph <- sif2igraph(Path = "/Users/User1/Desktop/mygraph.sif", directed=FALSE)

## End(Not run)

influential documentation built on Nov. 19, 2023, 9:06 a.m.