Any use of this code for research purposes, should contain a reference to the following paper: "Localized Protocols for Ad Hoc Clustering and Backbone Formation: A Performance Comparison.", S. Basagni, M. Mastrogiovanni, A. Panconesi, and C. Petrioli. IEEE Transactions on Parallel and Distributed Systems, Special Issue on Localized Communication and Topology Protocols for Ad Hoc Networks (S. Olariu, D. Simplot-Ryl, and I. Stojmenovic, editors), April 2006.