Changed to use id as the unique vertex identifier