Update and get weight/color

Added essential functions for update and get vertex weight/color.