made Graph a multiset for faster loading