Learn R Programming

BaseSet (version 0.9.0)

adjacency: Adjacency

Description

Are two elements connected ?

Usage

# S3 method for TidySet
adjacency(object)

adjacency_element(object)

adjacency_set(object)

# S3 method for TidySet adjacency(object)

Value

A square matrix, 1 if two nodes are connected, 0 otherwise.

Arguments

object

A TidySet object

See Also

incidence()

Examples

Run this code
x <- list("SET1" = letters[1:5], "SET2" = LETTERS[3:7])
a <- tidySet(x)
adjacency_element(a)
adjacency_set(a)

Run the code above in your browser using DataLab