custom LDiEdge with variable label; upsert replaced by label assignment; upper bound AnyRef for labels