Originally Posted by karpagavalli
I am in need of tcl code for the formation of clusters and cluster heads in ns2
Read the "Question Guidelines" link in my posting signature. Since you found this site with a Google search, you can also find scripts the same way...asking us to look them up for you is fairly rude.
knudfl has given you links. We will be happy to help with QUESTIONS, but you do need to show effort of your own.