1. A method clustering nodes in a network, comprising the steps of: determining, in each node, a cluster head capability (CHC); broadcasting, directly or indirectly, the CHC until all nodes have received the CHC's; nominating, in each node, one or more candidate cluster heads based on the CHCs; and selecting, in each node, at least one cluster head from the candidate cluster head nodes based on maximal CHCs.