joinWithVertices implemented and tested