compute_node_adjacency {GSSTDA}R Documentation

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)

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.

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.


[Package GSSTDA version 1.0.0 Index]