Maybe use pattern graph here instead of passing an extra Seq.empty