adjacency: Create an adjacency matrix from an edgelist

Description Usage Arguments Value Author(s)

Description

Create an adjacency matrix from an edgelist.

Usage

1
adjacency(edgelist,directed=TRUE,valued=TRUE,mode="multiple")

Arguments

edgelist

A matrix with a minimum of three columns. Result of createedges.

directed

logical. TRUE (default) if the adjacency matrix should be directed (asymmetric) or FALSE if it should be undirected (symmetric).

valued

logical. TRUE (default) if the adjacency matrix should be valued or FALSE if it should be unvalued (binary).

mode

The way how line values should be aggregated. multiple (default) if line values should represent multiple lines (e.g. number of e-mails) or addvalues if values in the third column of edgelist should be summed up.

Value

A matrix representation of a network. Row names and column names contain names of nodes.

Author(s)

Angela Bohn angela.bohn at gmail.com


snatm documentation built on May 2, 2019, 5:01 p.m.

Related to adjacency in snatm...