as.adjacency.parental: Convert a object of class 'parental' to an adjacency matrix.

Description Usage Arguments Value Examples

View source: R/convert.R

Description

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.

Usage

1
2
  ## S3 method for class 'parental'
 as.adjacency(x, ...)

Arguments

x

A object of class 'parental'.

...

unused

Value

An adjacency matrix.

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.