adjacencyMatFromDF: Get an adjacency matrix from an edge data frame

Description Usage Arguments Value

Description

Get an adjacency matrix from an edge data frame. If no weights are provided all weights are set to 1

Usage

1
adjacencyMatFromDF(edges, nodes = NULL)

Arguments

edges

a data frame with columns a, b, and (optionally) weight

nodes

an array of the unique node IDs used in a, b (inferred if not provided)

Value

an adjacency matrix


sverchkov/CommunityInference documentation built on May 7, 2019, 7:42 a.m.