A Graph-based Approach to Model Privacy and Security Issues of Online Social Networks