input matrix -- adjacency matrix of an observed graph based on the non-isolated nodes, of dimension n.noniso x n.noniso, where n.noniso is the number of the non-isolated nodes.
normalised
a logic variable indicating whether normalised Laplacian matrix is used in community detection.
score
a logical variable indicating whether the RoE is used.
K
input integer -- the pre-specified number of communities, with the default value 2.