Handling vertex connection.