I am not sure why not all lines are getting added as vertices, it has something to do with the map and hashcode