Added new vertex connect function