update
update with support of multiple graphs