Graph-based security and privacy analytics via collective classification