new function to annotate edges with years. before testing