Assign cluster labels to each row from the membership matrix.
labelCluster(x, ties.method = "random")
integer
vector of the same length as x
. Each entry is one of 1, 2, ..., ncol(x)
.
matrix
with non-negative entries, where x[i,j]
is the estimated likelihood (or any equivalent measure) of node i belongs to block j. The higher the more likely.
character
, how should ties be handled, "random", "first", "last" are allowed. See base::rank()
for details.