Social networks have small-world property, hierarchical community structure, and some other properties. This paper proposes models of networks with these properties and algorithm for community structure recognition. The models are useable for testing effectiveness and efficiency of different algorithms for social network analysis. © 2010 Published by Elsevier B.V.