Refactored edge uniqueness test for graphs into utilities file. Removed test from index view (no longer needed for now).