A new topological metric for link prediction in directed, weighted and temporal networks