The 'num' loss function can be used to find connected components.
Added 'max_cluster_size' flag, which penalizes clusters that are too large.
Added new optimization type: swapping the cluster assignment of two nodes.