It computes the adjacency matrix between nodes. Two nodes are considered connected if they share at least one individual.
compute_node_adjacency(nodes_list)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.
Output of the levels_to_nodes function. List of
character vectors. Each of the vectors contains the names of the
individuals at each node.