add width, color attributes to Relation and Entity