Check for no duplicate nodes