Privacy-Preserving Mechanisms for Machine Learning on Graph-Structured Data