check, if edge is already used in a definition