Causal Inference in Complex Networks