as.adjacency: Convert an object to an adjacency matrix.

Description Usage Arguments Details See Also Examples

View source: R/convert.R

Description

A generic for converting objects to adjacency matrices.

Usage

1

Arguments

x

An object

...

Further arguments, passed to method

Details

An adjacency matrix is a matrix A of dimension n x n, with A[i, j] = 1 if an edge exist between nodes i and j, where n is the number of nodes.

See Also

as.adjacency.parental

Examples

1
2
x <- parental(c(), c(1), c(2))
as.adjacency(x)

rjbgoudie/parental documentation built on May 27, 2019, 9:11 a.m.