Add Get/Set interface to edge weights.