Abstracted out recombinant edge creation code.