from.adjacency: Adjacency Matrix to 'fastnet'

Description Usage Arguments Value Author(s) Examples

View source: R/from.adjacency.R

Description

Transform an adjacency matrix to an ego-centric list form used in fastnet.

Usage

1
from.adjacency(adj.mat)

Arguments

adj.mat

The input adjacency matrix

Value

A list containing the nodes of the network and their respective neighbors.

Author(s)

Xu Dong, Christian Llano.

Examples

1
2
adj.mat <- matrix(c(0,1,0,0,1,0,0,0,0,0,0,1,0,0,1,0), nrow = 4, ncol = 4)
g <- from.adjacency(adj.mat)

networkgroupR/fastnet documentation built on June 6, 2017, 10:20 a.m.