support mutli set graphs