Learn R Programming

GSSTDA (version 0.1.3)

compute_node_adjacency: Computes the adjacency matrix.

Description

It computes the adjacency matrix between nodes. Two nodes are considered connected if they share at least one individual.

Usage

compute_node_adjacency(nodes_list)

Value

It returns a matrix of magnitude n nodes x n nodes that stores a 1 if there are shared samples in two given nodes and a 0 otherwise.

Arguments

nodes_list

Output of the levels_to_nodes function. List of character vectors. Each of the vectors contains the names of the individuals at each node.