Cycle warnings or cyle prevention

Hi,

It’s very easy to create cycle and whenever I’ve accidentally created one the program crashes, would it be possible to introduce a pop window which warns the user of a cycle or prevent any connections which would cause a cycle?

Thanks,
-Harry