Distributed Inference over multitask graphs under smoothness