edgelist2graph: Transform a data frame edge list into an 'igraph' graph

Description Usage Arguments Details Value

View source: R/edgeList2graph.R

Description

Transforms an edge list into an igraph graph. The edge list can come from columns 1 and 3 of a SIF (Simple Interaction Format) file, or can otherwise contain pairs of nodes connected in the graph.

Usage

1
edgelist2graph(edge.lst)

Arguments

edge.lst

Matrix-like object with two columns that define undirected edge-list.

Details

This function applies graph_from_edgelist then simplify.

Value

An igraph graph.


jdreyf/PANTS documentation built on July 18, 2019, 10:12 a.m.