if we've already touched a vertex or edge use it instead of creating new ones
Merge pull request #161 from nla/js-fix-getVertices

if we've already touched a vertex or edge use it instead of creating anew