Analysis of privacy in online social networks from the graph theory perspective