Task-Specific Summarization Of Networks: Optimization And Learning