Disallow double edges in scripts