Check if target DPU has any input, when adding edge to it. Closes #685. Fixed setDefaultMapping to use correct list, closes #694.