Skip to contents

This function merges the partitions of connected components back together.

Usage

merge_cc_partitions(components, partitions)

Arguments

components

A vector indicating the connected component index of each element.

partitions

A list of partition vectors, where each vector represents a partition of a connected component.

Value

A merged partition vector.