add causal key to note which edges are causal