Searching for duplicate rows already persisted can lead to performance issues. For each new item you ill need to search a match in that table. To guarantee routes are unique you can create a unique index covering source and destination ids. Any attempt to duplicate data ill throw an exception. and this ill work fast.
But if all you want is to just find duplicate items in a list look at this post. How to find duplicate items in list